fixup! flail: attempt testing EOL pythons in workflow #31
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
push: | |
branches: ["*"] | |
pull_request: | |
branches: [main] | |
jobs: | |
tests: | |
name: Python ${{ matrix.python-version }} (${{ matrix.runner }}) | |
runs-on: ${{ matrix.runner }} | |
strategy: | |
fail-fast: false | |
matrix: | |
runner: [ubuntu-latest] | |
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
include: | |
- {python-version: pypy-3.8, toxenv: pypy38} | |
- {python-version: pypy-3.10, toxenv: pypy310} | |
- {python-version: pypy-2.7, toxenv: pypy27, tox3: true} | |
- {python-version: "3.6", runner: ubuntu-20.04, tox3: true} | |
- {python-version: "3.7", tox3: true} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
id: setup-python | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install tox4 | |
if: ${{ ! matrix.tox3 }} | |
run: | | |
python -m pip install --upgrade pip setuptools | |
pip install tox | |
- name: Install tox3 | |
if: ${{ matrix.tox3 }} | |
run: | | |
python -m pip install --upgrade pip setuptools | |
pip install 'tox<4' 'virtualenv<20.22.0' | |
- name: Test with tox | |
run: tox -e ${{ matrix.toxenv || format('py{0}', matrix.python) }} | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: coverage-data | |
path: .coverage.* | |
coverage: | |
needs: tests | |
if: ${{ success() || failure() }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/download-artifact@v3 | |
with: | |
name: coverage-data | |
- run: python -m pip install tox | |
- run: tox -e cover-report | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: python -m pip install pre-commit tox | |
- run: pre-commit run -a | |
- run: tox r -e lint | |
if: ${{ success() || failure() }} |