Skip to content

fixup! flail: attempt testing EOL pythons in workflow #32

fixup! flail: attempt testing EOL pythons in workflow

fixup! flail: attempt testing EOL pythons in workflow #32

Workflow file for this run

name: Tests
on:
push:
branches: ["*"]
pull_request:
branches: [main]
jobs:
tests:
name: Python ${{ matrix.python }} ${{ matrix.os }}
runs-on: ${{ matrix.os || 'ubuntu-latest' }}
strategy:
fail-fast: false
matrix:
include:
- {python: "3.6", os: ubuntu-20.04, tox3: true}
- {python: "3.7", tox3: true}
- {python: "3.8"}
- {python: "3.9"}
- {python: "3.10"}
- {python: "3.11"}
- {python: "3.12"}
- {python: pypy-2.7, toxenv: pypy27, tox3: true}
- {python: pypy-3.8, toxenv: pypy38}
- {python: pypy-3.10, toxenv: pypy310}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
id: setup-python
with:
python-version: ${{ matrix.python }}
- run: python -m pip install --upgrade pip setuptools
- name: Install tox4
run: pip install tox
if: ${{ ! matrix.tox3 }}
- name: Install tox3
run: pip install 'tox<4' 'virtualenv<20.22.0'
if: ${{ matrix.tox3 }}
- 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() }}