Skip to content

Commit 9d8b709

Browse files
committed
ci(regression): disable xdist and enforce deterministic test execution
1 parent 4efcac7 commit 9d8b709

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

.github/workflows/pr.yaml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ concurrency:
77
group: pr-${{ github.ref }}
88
cancel-in-progress: true
99

10+
env:
11+
OMP_NUM_THREADS: 1
12+
MKL_NUM_THREADS: 1
13+
OPENBLAS_NUM_THREADS: 1
14+
NUMEXPR_NUM_THREADS: 1
15+
PYTHONHASHSEED: 0
16+
1017
jobs:
1118
unit:
1219
name: Unit
@@ -34,7 +41,7 @@ jobs:
3441
python -m pip install -e .[testing]
3542
3643
- name: Pytest (unit) • ${{ matrix.os }}, ${{ matrix.python-version }}
37-
run: python -m pytest tests/unit
44+
run: python -m pytest tests/unit --cache-clear
3845

3946
discover-systems:
4047
name: Discover regression systems
@@ -99,11 +106,11 @@ jobs:
99106
run: |
100107
python -m pytest tests/regression \
101108
-m "not slow" \
102-
-n auto \
103-
--dist=loadscope \
104-
-k "${{ matrix.system }}" \
109+
--cache-clear \
110+
--system "${{ matrix.system }}" \
105111
-vv \
106-
--durations=20
112+
--durations=20 \
113+
--codeentropy-debug
107114
108115
- name: Upload artifacts (failure)
109116
if: failure()
@@ -200,6 +207,7 @@ jobs:
200207
- name: Run coverage
201208
run: |
202209
pytest tests/unit \
210+
--cache-clear \
203211
--cov CodeEntropy \
204212
--cov-report term-missing \
205213
--cov-report xml \

0 commit comments

Comments
 (0)