Skip to content

Commit 1cbc1e7

Browse files
author
peng.li24
committed
ci: print numpy version in each test step for alignment traceability
1 parent c23abc8 commit 1cbc1e7

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ jobs:
4444
sudo apt-get update -qq
4545
sudo apt-get install -y libeigen3-dev
4646
47+
- name: Show numpy version
48+
run: python -c "import numpy; print('numpy', numpy.__version__)"
49+
4750
- name: Diagnose numpy symbols
4851
run: |
4952
python diagnose_numpy.py
@@ -59,6 +62,8 @@ jobs:
5962
- name: Run 900 bit-exact tests
6063
run: |
6164
cd tests
65+
NUMPY_VER=$(python -c "import numpy; print(numpy.__version__)")
66+
echo "numpy version: $NUMPY_VER"
6267
python -m pytest test_all.py -q --tb=short --no-header
6368
6469
# ── Job 2: std / performance-first backend (informational) ───────────────────
@@ -96,12 +101,17 @@ jobs:
96101
- name: Build
97102
run: cmake --build tests/build_std -j$(nproc)
98103

104+
- name: Show numpy version
105+
run: python -c "import numpy; print('numpy', numpy.__version__)"
106+
99107
- name: Run all 900 tests (std mode — failures expected for transcendental/linalg)
100108
# Run the full suite so the CI log honestly shows which tests align and
101109
# which do not. std::exp/log/pow/atan2 and C++ loops differ from numpy's
102110
# SVML/OpenBLAS paths by 0-2 ULP — those failures are expected and documented.
103111
run: |
104112
cd tests
113+
NUMPY_VER=$(python -c "import numpy; print(numpy.__version__)")
114+
echo "numpy version: $NUMPY_VER"
105115
python -m pytest test_all.py -q --tb=no --no-header
106116
107117
# ── Job 3: package DEB ───────────────────────────────────────────────────────

0 commit comments

Comments
 (0)