Skip to content

Commit f5843b0

Browse files
committed
Change flag used
1 parent 5b4d8e2 commit f5843b0

1 file changed

Lines changed: 11 additions & 13 deletions

File tree

.github/workflows/run_tests.yml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -227,31 +227,29 @@ jobs:
227227
production.uv.lock
228228
.github/workflows/run_tests.yml
229229
230-
231-
232230
# Use Conda to install Python (setup-python action doesn't support ARM)
233231
- uses: conda-incubator/setup-miniconda@v3
234232
with:
235233
auto-update-conda: true
236234
python-version: ${{ matrix.python-version }}
237235

238236
- name: Set up uv
239-
if: steps.changed-files.outputs.only_changed != 'true'
237+
if: steps.changed-files.outputs.any_changed == 'true'
240238
uses: astral-sh/setup-uv@v6
241239
with:
242240
enable-cache: true
243241

244242
- name: Restore UV environment
245-
if: steps.changed-files.outputs.only_changed != 'true'
243+
if: steps.changed-files.outputs.any_changed == 'true'
246244
run: cp production.uv.lock uv.lock
247245

248246
- name: Install package
249-
if: steps.changed-files.outputs.only_changed != 'true'
247+
if: steps.changed-files.outputs.any_changed == 'true'
250248
run: |
251249
uv sync --extra dev --frozen
252250
253251
- name: Set up Podman
254-
if: steps.changed-files.outputs.only_changed != 'true' && matrix.docker-engine == 'podman'
252+
if: steps.changed-files.outputs.any_changed == 'true' && matrix.docker-engine == 'podman'
255253
run: |
256254
systemctl start --user podman.socket
257255
systemctl status --user podman.socket
@@ -265,7 +263,7 @@ jobs:
265263
echo "TESSERACT_DOCKER_BUILD_ARGS=" >> $GITHUB_ENV
266264
267265
- name: Run test suite
268-
if: steps.changed-files.outputs.only_changed != 'true'
266+
if: steps.changed-files.outputs.any_changed == 'true'
269267
run: |
270268
if [ "${{ matrix.unit-tesseract }}" == "base" ]; then
271269
uv run --no-sync pytest \
@@ -286,7 +284,7 @@ jobs:
286284
fi
287285
288286
- name: Upload coverage reports to Codecov
289-
if: steps.changed-files.outputs.only_changed != 'true'
287+
if: steps.changed-files.outputs.any_changed == 'true'
290288
uses: codecov/codecov-action@v5.4.3
291289
with:
292290
token: ${{ secrets.CODECOV_TOKEN }}
@@ -328,28 +326,28 @@ jobs:
328326
.github/workflows/run_tests.yml
329327
330328
- name: Install uv
331-
if: steps.changed-files.outputs.only_changed != 'true'
329+
if: steps.changed-files.outputs.any_changed == 'true'
332330
uses: astral-sh/setup-uv@v6
333331
with:
334332
enable-cache: true
335333

336334
- name: Set up Python
337-
if: steps.changed-files.outputs.only_changed != 'true'
335+
if: steps.changed-files.outputs.any_changed == 'true'
338336
uses: actions/setup-python@v5
339337
with:
340338
python-version: ${{ matrix.python-version }}
341339

342340
- name: Restore UV environment
343-
if: steps.changed-files.outputs.only_changed != 'true'
341+
if: steps.changed-files.outputs.any_changed == 'true'
344342
run: cp production.uv.lock uv.lock
345343

346344
- name: Install dev requirements
347-
if: steps.changed-files.outputs.only_changed != 'true'
345+
if: steps.changed-files.outputs.any_changed == 'true'
348346
run: |
349347
uv sync --extra dev --frozen
350348
351349
- name: Run demos
352-
if: steps.changed-files.outputs.only_changed != 'true'
350+
if: steps.changed-files.outputs.any_changed == 'true'
353351
working-directory: demo/${{matrix.demo}}
354352
run: |
355353
uv pip install jupyter

0 commit comments

Comments
 (0)