Skip to content

fix(tests): repair CI test collection on Python 3.9 and 3.13 #18

fix(tests): repair CI test collection on Python 3.9 and 3.13

fix(tests): repair CI test collection on Python 3.9 and 3.13 #18

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.11", "3.13"]
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Install uv
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
with:
python-version: ${{ matrix.python-version }}
enable-cache: true
- name: Tests + coverage (excluding live CrossRef/NCBI calls)
run: uv run --extra dev pytest --cov=ghostcite --cov-report=term-missing -m "not live"
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Install uv
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
with:
enable-cache: true
- name: Lint (ruff)
run: uv run --extra dev ruff check .
- name: Format check (ruff)
run: uv run --extra dev ruff format --check .
types:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Install uv
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
with:
enable-cache: true
# mypy is clean and now gates the build: type regressions fail CI.
- name: Types (mypy)
run: uv run --extra dev mypy src/ghostcite