Skip to content

docs: fix QQA/CPRA paper citations, adopt TMLR title rename, broaden … #41

docs: fix QQA/CPRA paper citations, adopt TMLR title rename, broaden …

docs: fix QQA/CPRA paper citations, adopt TMLR title rename, broaden … #41

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint-and-test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v5
# ``setup-uv`` switched to immutable releases at v8.0.0 and stopped
# publishing the moving ``@v8`` major tag, so pin to a specific
# immutable release. See
# https://github.com/astral-sh/setup-uv/releases/tag/v8.0.0
- name: Install uv
uses: astral-sh/setup-uv@v8.1.0
with:
enable-cache: true
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install package with all extras (CPU torch)
env:
PIP_EXTRA_INDEX_URL: https://download.pytorch.org/whl/cpu
run: uv sync --extra plotly --extra gui --extra docs --extra dev
- name: Ruff lint
run: uv run ruff check src tests scripts app
- name: Ruff format check
run: uv run ruff format --check src tests scripts app
- name: Run tests with coverage
run: uv run pytest -q --cov=src/qqa --cov-report=xml --cov-report=term
- name: Upload coverage to Codecov
if: matrix.python-version == '3.11'
uses: codecov/codecov-action@v4
with:
files: ./coverage.xml
flags: unittests
fail_ci_if_error: false
token: ${{ secrets.CODECOV_TOKEN }}
- name: MkDocs strict build
run: uv run mkdocs build --clean --strict