Drop Py3.8, add support for Py3.13 #232
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: Testing | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- docs/** | |
pull_request: | |
branches: | |
- main | |
paths-ignore: | |
- docs/** | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
pytest: | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: | |
- '3.9' | |
- '3.10' | |
- '3.11' | |
- '3.12' | |
- '3.13' | |
os: | |
- ubuntu-latest | |
- macos-latest | |
- windows-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: astral-sh/setup-uv@v3 | |
- name: Setup Python | |
run: uv python install ${{ matrix.python-version }} | |
- name: Install project | |
run: uv sync --dev | |
- name: Run tests | |
env: | |
COMICVINE__API_KEY: IGNORED | |
run: uv run pytest | |
collector: | |
needs: [pytest] | |
if: always() | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check for failures | |
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') | |
run: echo job failed && exit 1 |