Skip to content

Commit 88c00a3

Browse files
Make CI parity failures concise and actionable
1 parent 93c6f35 commit 88c00a3

1 file changed

Lines changed: 13 additions & 8 deletions

File tree

.github/workflows/native-backend-ci.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,33 +24,38 @@ jobs:
2424

2525
- name: Install build tools
2626
run: |
27-
python -m pip install -U pip
27+
python -m pip install -q -U pip
2828
# numpy pinned <2.5: the R parity cache keys hash test inputs generated via
2929
# multivariate_normal (LAPACK SVD). numpy 2.5.x bundles an OpenBLAS whose SVD
3030
# kernels differ on some runner CPUs, changing inputs bit-for-bit and causing
3131
# cache misses. Re-evaluate at the next full live-R cache regeneration.
32-
python -m pip install build scikit-build-core nanobind pytest ruff mypy "numpy<2.5" scipy
33-
python -m pip install hypothesis pytest-benchmark pytest-xdist
32+
python -m pip install -q build scikit-build-core nanobind pytest ruff mypy "numpy<2.5" scipy
33+
python -m pip install -q hypothesis pytest-benchmark pytest-xdist
3434
3535
- name: Install package editable
36-
run: python -m pip install -e .
36+
run: python -m pip install -q -e .
3737

3838
- name: Run native import smoke test
3939
run: python -c "import nns._nnscore as c; print(c.lpm(2.0, 0.0, [-2.0, -1.0, 0.5, 3.0]))"
4040

4141
- name: Run invariants without Rscript
42-
run: python -m pytest -q tests/invariants
42+
run: |
43+
set +e
44+
python -m pytest -q --tb=short tests/invariants > invariant-results.txt 2>&1
45+
status=$?
46+
cat invariant-results.txt
47+
exit $status
4348
4449
- name: Run parity from committed R cache
45-
run: NNS_R_CACHE_ONLY=1 python -m pytest -q tests/parity
50+
run: NNS_R_CACHE_ONLY=1 python -m pytest -q --tb=short tests/parity
4651

4752
- name: Run plotting color-fidelity tests
48-
run: python -m pytest -q tests/plotting
53+
run: python -m pytest -q --tb=short tests/plotting
4954

5055
- name: Run vignette examples
5156
run: |
5257
if [ -f tests/docs/test_vignette_examples.py ]; then
53-
python -m pytest -q tests/docs/test_vignette_examples.py
58+
python -m pytest -q --tb=short tests/docs/test_vignette_examples.py
5459
else
5560
echo "No docs vignette test present; skipping."
5661
fi

0 commit comments

Comments
 (0)