Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 2
Latest commit
32 lines (32 loc) · 932 Bytes
/
Copy pathtest.yml
File metadata and controls
32 lines (32 loc) · 932 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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