Skip to content

Commit af48930

Browse files
committed
CI: skip jep tests when running the javaless job
And name the javaless job differently, to disambiguate it.
1 parent ace4df5 commit af48930

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ jobs:
2929
java-version: ['11']
3030
include:
3131
# one test without java to test cjdk fallback
32-
- os: ubuntu-latest
32+
- name: test ${{matrix.os}} - ${{matrix.python-version}} no-java
33+
os: ubuntu-latest
3334
python-version: '3.12'
3435
java-version: ''
3536

bin/test.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ if [ "$(uname -s)" = "Darwin" ]
7777
then
7878
echo "Skipping jep tests on macOS due to flakiness"
7979
jepCode=0
80+
elif ! echo "print('Jep is working; proceeding with jep test')" | jep;
81+
then
82+
# Note: This case occurs when running the no-java CI job.
83+
echo "Jep installation is nonfunctional; skipping jep tests"
84+
jepCode=0
8085
else
8186
echo "# AUTOGENERATED test file for jep; safe to delete.
8287
import logging, sys, pytest, scyjava

0 commit comments

Comments
 (0)