2021-01-08 21:20:21 +01:00
|
|
|
name: Main
|
|
|
|
|
|
|
|
on:
|
|
|
|
- pull_request
|
|
|
|
- push
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
python-version:
|
2022-09-25 13:56:43 +02:00
|
|
|
- '3.7'
|
|
|
|
- '3.8'
|
|
|
|
- '3.9'
|
|
|
|
- '3.10'
|
2022-12-18 18:41:23 +01:00
|
|
|
- '3.11'
|
2021-01-08 21:20:21 +01:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Clone Repository
|
2022-12-18 18:37:07 +01:00
|
|
|
uses: actions/checkout@v3
|
2021-01-08 21:20:21 +01:00
|
|
|
|
|
|
|
- name: Setup Python ${{ matrix.python-version }}
|
2022-12-18 18:37:07 +01:00
|
|
|
uses: actions/setup-python@v4
|
2021-01-08 21:20:21 +01:00
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
|
|
|
|
- name: Install Tox
|
|
|
|
run: |
|
|
|
|
python -m pip install --upgrade pip
|
|
|
|
pip install tox tox-gh-actions
|
|
|
|
|
|
|
|
- name: Invoke Tox
|
|
|
|
run: tox
|