Skip to content

Tests

Tests #332

Workflow file for this run

name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
# Twice daily (CNA parity) — catch upstream/catalog regressions.
- cron: "31 1,12 * * *"
workflow_dispatch:
jobs:
test:
if: github.event_name != 'pull_request' || github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Checkout cpa-templates
uses: actions/checkout@v7
with:
repository: Create-Python-App/cpa-templates
path: cpa-templates
- uses: astral-sh/setup-uv@v7
with:
enable-cache: true
- uses: actions/setup-python@v7
with:
python-version-file: .python-version
- run: uv sync --group dev
- name: Run tests
env:
CPA_TEMPLATES_ROOT: ${{ github.workspace }}/cpa-templates
run: uv run pytest --cov --cov-report=term-missing