File tree Expand file tree Collapse file tree 1 file changed +20
-5
lines changed
Expand file tree Collapse file tree 1 file changed +20
-5
lines changed Original file line number Diff line number Diff 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' }}
You can’t perform that action at this time.
0 commit comments