Skip to content

Commit 977b0b9

Browse files
committed
Another try
1 parent 5b5a57e commit 977b0b9

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

.github/workflows/testing.yml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -333,13 +333,22 @@ jobs:
333333
./scripts/ci_run.sh ${{ matrix.project_type }} 4
334334
- name: MyPy
335335
working-directory: ${{ env.WORKING_DIR }}
336-
run: .venv/bin/python -m mypy .
336+
run: $PYTHON -m mypy .
337+
shell: bash
338+
env:
339+
PYTHON: ${{ runner.os == 'Windows' && '.venv/Scripts/python.exe' || '.venv/bin/python' }}
337340
- name: ruff check
338341
working-directory: ${{ env.WORKING_DIR }}
339-
run: .venv/bin/python -m ruff check .
342+
run: $PYTHON -m ruff check .
343+
shell: bash
344+
env:
345+
PYTHON: ${{ runner.os == 'Windows' && '.venv/Scripts/python.exe' || '.venv/bin/python' }}
340346
- name: ruff format
341347
working-directory: ${{ env.WORKING_DIR }}
342-
run: .venv/bin/python -m ruff format --check .
348+
run: $PYTHON -m ruff format --check .
349+
shell: bash
350+
env:
351+
PYTHON: ${{ runner.os == 'Windows' && '.venv/Scripts/python.exe' || '.venv/bin/python' }}
343352
setuptools-test:
344353
strategy:
345354
fail-fast: false
@@ -366,8 +375,14 @@ jobs:
366375
working-directory: ${{ env.WORKING_DIR }}
367376
run: |
368377
git add .
369-
.venv/bin/python -m pre_commit run --all-files
378+
$PYTHON -m pre_commit run --all-files
379+
shell: bash
380+
env:
381+
PYTHON: ${{ runner.os == 'Windows' && '.venv/Scripts/python.exe' || '.venv/bin/python' }}
370382
- name: Test with pytest
371383
working-directory: ${{ env.WORKING_DIR }}
372384
if: matrix.project_type == 'application'
373-
run: .venv/bin/python -m pytest
385+
run: $PYTHON -m pytest
386+
shell: bash
387+
env:
388+
PYTHON: ${{ runner.os == 'Windows' && '.venv/Scripts/python.exe' || '.venv/bin/python' }}

0 commit comments

Comments
 (0)