@@ -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+
1017jobs :
1118 unit :
1219 name : Unit
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
@@ -84,23 +91,34 @@ jobs:
8491 python-version : " 3.14"
8592 cache : pip
8693
87- - name : Cache testdata
88- uses : actions/cache@v4
89- with :
90- path : .testdata
91- key : codeentropy-testdata-${{ runner.os }}-py314
94+ # Intentionally disabled while debugging CI-only regression flakes.
95+ # The old key was static and could restore stale generated test data:
96+ # codeentropy-testdata-${{ runner.os }}-py314
97+ #
98+ # - name: Cache testdata
99+ # uses: actions/cache@v4
100+ # with:
101+ # path: .testdata
102+ # key: codeentropy-testdata-${{ runner.os }}-py314
92103
93104 - name : Install testing dependencies
94105 run : |
95106 python -m pip install --upgrade pip
96107 python -m pip install -e .[testing]
97108
109+ - name : Clean local test caches
110+ shell : bash
111+ run : |
112+ rm -rf .pytest_cache
113+ rm -rf .testdata
114+ find . -type d -name "__pycache__" -prune -exec rm -rf {} +
115+
98116 - name : Run fast regression tests (per system)
99117 run : |
100118 python -m pytest tests/regression \
101119 -m "not slow" \
102- -n auto \
103- --dist=loadscope \
120+ --cache-clear \
121+ -n 1 \
104122 -k "${{ matrix.system }}" \
105123 -vv \
106124 --durations=20
@@ -200,6 +218,7 @@ jobs:
200218 - name : Run coverage
201219 run : |
202220 pytest tests/unit \
221+ --cache-clear \
203222 --cov CodeEntropy \
204223 --cov-report term-missing \
205224 --cov-report xml \
0 commit comments