-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (41 loc) · 1.94 KB
/
Copy pathtest-python.yml
File metadata and controls
43 lines (41 loc) · 1.94 KB
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
33
34
35
36
37
38
39
40
41
42
43
name: test-python
# Auto-triggers disabled: out of GitHub Actions credits.
# Re-enable PR/push triggers once billing is restored. See issue tracker.
on:
workflow_dispatch:
permissions:
contents: read
jobs:
pytest:
strategy:
fail-fast: false
matrix:
# `ubuntu-24.04-arm` is GitHub's free aarch64 hosted
# runner (GA since 2025). No GPU, but it catches aarch64-only import
# bugs (e.g. the `tegra` library paths in `nvbufsurface.py`) that the
# x86 lanes can't see.
#
# macOS is intentionally not in the matrix: the shared macOS hosted
# runner can't honor the hot-loop timing budgets (`precise_sleep`
# overshoot, 30 Hz cadence) that CLAUDE.md §2 pins to the *reference
# host*, so a macOS lane only produces false-red timing flakes — not a
# valid signal. Linux x86 (+ aarch64) is the supported CI surface.
os: [ubuntu-22.04, ubuntu-24.04, ubuntu-24.04-arm]
python: ["3.12"]
runs-on: ${{ matrix.os }}
# PR 3/3 onboarding: keep aarch64 non-blocking for two weeks of warm-up,
# then promote to required (drop continue-on-error and tighten branch
# protection). Tracked in a later amendment to the CI-matrix decision.
continue-on-error: ${{ matrix.os == 'ubuntu-24.04-arm' }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
- run: uv python install ${{ matrix.python }}
- run: uv sync --frozen --all-packages || uv sync --all-packages
- run: uv run pytest -q --cov=python --cov-branch --cov-report=xml
- name: Upload coverage reports to Codecov
if: matrix.os == 'ubuntu-24.04' && matrix.python == '3.12'
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.xml