| name: Run Tox tests |
| |
| on: |
| - push |
| - pull_request |
| |
| jobs: |
| build: |
| runs-on: ubuntu-latest |
| |
| strategy: |
| matrix: |
| python-version: ["3.9", "3.10"] |
| fail-fast: false |
| |
| steps: |
| - uses: actions/checkout@v5 |
| - name: Set up Python ${{ matrix.python-version }} |
| uses: actions/setup-python@v6 |
| with: |
| python-version: ${{ matrix.python-version }} |
| - name: Install dependencies |
| run: | |
| python -m pip install --upgrade pip |
| pip install tox tox-gh-actions |
| - name: Tox flake8 |
| run: tox -e flake8 |
| - name: Tox docs |
| run: tox -e docs |
| - name: Tox mypy |
| run: tox -e mypy |
| - name: Tox py3 |
| run: tox -e py3 |