Skip to content

Commit 25ca849

Browse files
committed
ci(freebsd): make numpy install non-fatal
py312-numpy isn't published in FreeBSD 14.1's pkg repository yet, so pkg install fails the job before the build even starts. The ML SUITE already self-skips when numpy isn't importable, so the right move is to log a warning and move on rather than block CI on an upstream package gap.
1 parent 1366ed1 commit 25ca849

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,13 @@ jobs:
117117
usesh: true
118118
prepare: |
119119
pkg install -y erlang ${{ matrix.python_pkg }} cmake
120-
# numpy package follows the py<noDot>-numpy convention
120+
# numpy package follows the py<noDot>-numpy convention.
121+
# Non-fatal: not every FreeBSD pkg snapshot ships numpy for
122+
# every Python flavor; the ML SUITE self-skips when numpy
123+
# is missing, which is the right behavior here.
121124
NUMPY_PKG="$(echo '${{ matrix.python_pkg }}' | sed 's/^python/py/')-numpy"
122-
pkg install -y "$NUMPY_PKG"
125+
pkg install -y "$NUMPY_PKG" || \
126+
echo "WARN: $NUMPY_PKG unavailable; ML cases will skip"
123127
run: |
124128
# Set up environment
125129
export PYTHON_CONFIG=python${{ matrix.python }}-config

0 commit comments

Comments
 (0)