Skip to content

Commit 003ae7d

Browse files
committed
clean up test.yml
1 parent e20c981 commit 003ae7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ jobs:
156156
# -rf: print failed tests
157157
# --timeout: max allowed time for each test
158158
# Set test path: "." for regular tests, "test/test_examples_dist.py" for distributed
159-
TEST_PATH=$([[ "${{ matrix.alias }}" == *distributed* ]] && echo "test/test_examples_dist.py" || echo ".")
160-
EXTRA_FLAGS=$([[ "${{ matrix.alias }}" == *distributed* ]] && echo "" || echo "--ignore=test/test_examples_dist.py")
159+
TEST_PATH=$([[ "${{ contains(matrix.alias, 'distributed') }}" == "true" ]] && echo "test/test_examples_dist.py" || echo ".")
160+
EXTRA_FLAGS=$([[ "${{ contains(matrix.alias, 'distributed') }}" == "true" ]] && echo "" || echo "--ignore=test/test_examples_dist.py")
161161
pytest -rf --timeout=60 $EXTRA_FLAGS $TEST_PATH
162162
163163
test-notebooks:

0 commit comments

Comments
 (0)