Skip to content

Commit d757b45

Browse files
committed
fix(ci): skip GPU integration tests when no GPU available
The packaging Verify Package step runs runtests.sh --net which requires GPU for deepedit/segmentation integration tests. On ubuntu-latest runners without GPUs, these tests would always fail. Add an nvidia-smi check to skip gracefully and explain why. Signed-off-by: Elanchezhian <chezhipower@gmail.com>
1 parent 775d40b commit d757b45

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/pythonapp.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,12 @@ jobs:
136136
python -m pip install pytest
137137
138138
# start the monailabel server in the background and run the integration tests
139-
./runtests.sh --net
139+
# Note: --net tests require GPU. Skip on non-GPU runners.
140+
if nvidia-smi &>/dev/null; then
141+
./runtests.sh --net
142+
else
143+
echo "Skipping integration tests -- GPU not available (requires self-hosted GPU runner)"
144+
fi
140145
141146
# cleanup
142147
python -m pip uninstall -y monailabel

0 commit comments

Comments
 (0)