From 6b3b8d545b1a0e23de78b8e76022206a96dea5e8 Mon Sep 17 00:00:00 2001 From: rasbt Date: Wed, 19 Feb 2025 19:27:23 -0600 Subject: [PATCH] use env --- .github/workflows/basic-tests-windows-uv.yml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/basic-tests-windows-uv.yml b/.github/workflows/basic-tests-windows-uv.yml index 3539be7..d49a93c 100644 --- a/.github/workflows/basic-tests-windows-uv.yml +++ b/.github/workflows/basic-tests-windows-uv.yml @@ -45,17 +45,15 @@ jobs: - name: Run Python Tests shell: pwsh run: | - .\.venv\Scripts\Activate.ps1 - pytest --ruff setup/02_installing-python-libraries/tests.py - pytest --ruff ch04/01_main-chapter-code/tests.py - pytest --ruff ch05/01_main-chapter-code/tests.py - pytest --ruff ch05/07_gpt_to_llama/tests/tests.py - pytest --ruff ch06/01_main-chapter-code/tests.py + .venv\Scripts\python -m pytest --ruff setup/02_installing-python-libraries/tests.py + .venv\Scripts\python -m pytest --ruff ch04/01_main-chapter-code/tests.py + .venv\Scripts\python -m pytest --ruff ch05/01_main-chapter-code/tests.py + .venv\Scripts\python -m pytest --ruff ch05/07_gpt_to_llama/tests/tests.py + .venv\Scripts\python -m pytest --ruff ch06/01_main-chapter-code/tests.py - name: Run Jupyter Notebook Tests shell: pwsh run: | - .\.venv\Scripts\Activate.ps1 - pytest --ruff --nbval ch02/01_main-chapter-code/dataloader.ipynb - pytest --ruff --nbval ch03/01_main-chapter-code/multihead-attention.ipynb - pytest --ruff --nbval ch02/04_bonus_dataloader-intuition/dataloader-intuition.ipynb + .venv\Scripts\python -m pytest --ruff --nbval ch02/01_main-chapter-code/dataloader.ipynb + .venv\Scripts\python -m pytest --ruff --nbval ch03/01_main-chapter-code/multihead-attention.ipynb + .venv\Scripts\python -m pytest --ruff --nbval ch02/04_bonus_dataloader-intuition/dataloader-intuition.ipynb