Skip to content

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

fixup! flail: attempt testing EOL pythons in workflow

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

Workflow file for this run

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.7", "3.8", "3.9", "3.10", "3.11", "3.12", pypy-2.7, pypy-3.8, pypy-3.10]
include:
- python-version: "3.6"
runner: ubuntu-20.04
eol: true
- python-version: "3.7"
eol: true
- python-version: pypy-2.7
eol: 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.eol }}
run: |
python -m pip install --upgrade pip setuptools
pip install tox tox-gh-actions
- name: Install tox3
if: ${{ matrix.eol }}
run: |
python -m pip install --upgrade pip setuptools
pip install 'tox<4' 'tox-gh-actions<3' 'virtualenv<20.22.0'
- name: Test with tox
run: tox
- 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() }}