Skip to content

Switch to dynamic versioning #674

Switch to dynamic versioning

Switch to dynamic versioning #674

Workflow file for this run

name: Tests
on:
- push
- pull_request
jobs:
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Nox
run: |
python -m pip install nox
- name: Install Poetry
run: |
python -m pip install poetry
- name: Run tests on ${{ matrix.os }}
run: nox --non-interactive --error-on-missing-interpreter --session "tests-${{ matrix.python-version }}" -- --full-trace
- name: Run integration tests on ${{ matrix.os }}
# not entirely sure why installing the package isn't required here
run: nox --non-interactive --error-on-missing-interpreter --session "integration-tests-${{ matrix.python-version }}" -- --full-trace
- name: Run linting on ${{ matrix.os }}
run: nox --non-interactive --error-on-missing-interpreter --session "lint-${{ matrix.python-version }}" -- --full-trace
- name: Run mypy on ${{ matrix.os }}
run: nox --non-interactive --error-on-missing-interpreter --session "mypy-${{ matrix.python-version }}" -- --full-trace
- name: Create coverage report
if: matrix.python-version == 3.13 && matrix.os == 'ubuntu-latest'
run: nox --non-interactive --error-on-missing-interpreter --session "coverage-3.13" -- --full-trace
- name: Upload coverage to Codecov
if: matrix.python-version == 3.13 && matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v2