9191 python-version : " 3.14"
9292 cache : pip
9393
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
103-
10494 - name : Install testing dependencies
10595 run : |
10696 python -m pip install --upgrade pip
@@ -112,21 +102,6 @@ jobs:
112102 rm -rf .pytest_cache
113103 find . -type d -name "__pycache__" -prune -exec rm -rf {} +
114104
115- - name : Prepare regression test data
116- shell : bash
117- run : |
118- python -m tests.regression.prepare_testdata --system "${{ matrix.system }}"
119-
120- if [ ! -d .testdata ]; then
121- echo ".testdata was not created"
122- exit 1
123- fi
124-
125- - name : Snapshot regression test data before tests
126- shell : bash
127- run : |
128- find .testdata -type f -exec sha256sum {} \; | sort > testdata.before.sha256
129-
130105 - name : Run fast regression tests (per system)
131106 run : |
132107 python -m pytest tests/regression \
@@ -138,32 +113,13 @@ jobs:
138113 --durations=20 \
139114 --codeentropy-debug
140115
141- - name : Snapshot regression test data after tests
142- if : always()
143- shell : bash
144- run : |
145- if [ -d .testdata ]; then
146- find .testdata -type f -exec sha256sum {} \; | sort > testdata.after.sha256
147- else
148- touch testdata.after.sha256
149- fi
150-
151- - name : Check regression test data did not change
152- if : always()
153- shell : bash
154- run : |
155- touch testdata.before.sha256 testdata.after.sha256
156- diff -u testdata.before.sha256 testdata.after.sha256
157-
158116 - name : Upload artifacts (failure)
159117 if : failure()
160118 uses : actions/upload-artifact@v4
161119 with :
162120 name : quick-regression-failure-${{ matrix.system }}
163121 path : |
164122 .testdata/**
165- testdata.before.sha256
166- testdata.after.sha256
167123 /tmp/pytest-of-*/pytest-*/**
168124
169125 docs :
0 commit comments