Skip to content

Commit 092fc80

Browse files
committed
Specify .venv
1 parent fbdf323 commit 092fc80

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/testing_fastapi.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -339,12 +339,12 @@ jobs:
339339
- name: Compile Rust
340340
working-directory: ${{ env.WORKING_DIR }}
341341
run: |
342-
python -m maturin build
342+
.venv/bin/maturin build
343343
- name: Pre-commit check
344344
working-directory: ${{ env.WORKING_DIR }}
345345
run: |
346346
git add .
347-
pre-commit run --all-files
347+
.venv/bin/pre-commit run --all-files
348348
- name: make .env
349349
working-directory: ${{ env.WORKING_DIR }}
350350
run: touch .env
@@ -353,7 +353,7 @@ jobs:
353353
run: docker compose up -d
354354
- name: Test with pytest
355355
working-directory: ${{ env.WORKING_DIR }}
356-
run: python -m pytest -n auto
356+
run: .venv/bin/pytest -n auto
357357
test-pyo3-setuptools-non-fastapi-project:
358358
name: test-fastapi-setuptools-pyo3-setup-non-fastapi
359359
strategy:
@@ -379,13 +379,13 @@ jobs:
379379
- name: Compile Rust
380380
working-directory: ${{ env.WORKING_DIR }}
381381
run: |
382-
python -m maturin build
382+
.venv/bin/maturin build
383383
- name: Pre-commit check
384384
working-directory: ${{ env.WORKING_DIR }}
385385
run: |
386386
git add .
387-
pre-commit run --all-files
387+
.venv/bin/pre-commit run --all-files
388388
- name: Test with pytest
389389
working-directory: ${{ env.WORKING_DIR }}
390390
if: matrix.project_type == 'application'
391-
run: python -m pytest
391+
run: .venv/bin/pytest

0 commit comments

Comments
 (0)