Skip to content

[pre-commit.ci] pre-commit autoupdate #568

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #568

Workflow file for this run

name: Test
on:
push:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
pre-commit:
name: Pre-commit checks (Black, Flake8, MyPy, ...)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.8"
- uses: pre-commit/[email protected]
test-dist:
name: Test SDist & wheel
needs: pre-commit
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install CPython 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
architecture: x64
- name: Run tests
run: pipx run nox -s test-dist -- 3.9
test:
name: CPython ${{ matrix.python }}
needs: test-dist
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- python: "3.8"
- python: "3.9"
- python: "3.10"
- python: "3.11"
- python: "3.12"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup cache
uses: actions/cache@v3
with:
path: ~/.cache/auditwheel_tests
key: python${{ matrix.python }}-${{ hashFiles('**/test_manylinux.py') }}
restore-keys: python${{ matrix.python }}-
- name: Install CPython ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: "${{ matrix.python }}"
architecture: x64
allow-prereleases: true
- name: Run tests
run: pipx run nox -s tests-${{ matrix.python }}
- name: Upload coverage to codecov
uses: codecov/codecov-action@v3