Skip to content

Commit 935cfc3

Browse files
committed
Refactor flaky file list to environment variable
1 parent abba674 commit 935cfc3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/ci-meson.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
test:
2222
name: Conda (${{ matrix.os }}, Python ${{ matrix.python }}, ${{ matrix.tests }}${{ matrix.editable && ', editable' || '' }})
2323
runs-on: ${{ matrix.os }}-latest
24+
env:
25+
SEPARATELY_TESTED_FLAKY_FILES: "src/sage/libs/singular/function.pyx src/sage/rings/polynomial/plural.pyx"
2426

2527
strategy:
2628
fail-fast: false
@@ -170,7 +172,7 @@ jobs:
170172
pytest -rfEs -s src
171173
./sage -t ${{
172174
matrix.tests == 'all' &&
173-
'--all-except="src/sage/libs/singular/function.pyx src/sage/rings/polynomial/plural.pyx"' ||
175+
'--all-except="$SEPARATELY_TESTED_FLAKY_FILES"' ||
174176
'--new --long' }} -p4 --format github
175177
fi
176178
@@ -181,7 +183,7 @@ jobs:
181183
shell: bash -l {0}
182184
run: |
183185
for i in {1..5}; do
184-
./sage -t -p4 --format github src/sage/libs/singular/function.pyx src/sage/rings/polynomial/plural.pyx && break
186+
./sage -t -p4 --format github $SEPARATELY_TESTED_FLAKY_FILES && break
185187
done
186188
187189
- name: Check that all modules can be imported

0 commit comments

Comments
 (0)