Skip to content

Commit 1c246a7

Browse files
committed
more windows issues
1 parent ca8c6ec commit 1c246a7

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

.github/workflows/basic-tests-windows-uv-pip.yml

+13-15
Original file line numberDiff line numberDiff line change
@@ -32,37 +32,35 @@ jobs:
3232
python-version: "3.13"
3333

3434
- name: Install dependencies
35-
shell: bash
35+
shell: pwsh
3636
run: |
37-
export PATH="$HOME/.local/bin:$PATH"
38-
pip install --upgrade pip
39-
pip install uv
37+
$env:Path = "C:\Users\runneradmin\.local\bin;$env:Path"
38+
python -m pip install --upgrade pip
39+
python -m pip install uv
4040
uv venv --python=python3.11
41-
source .venv/Scripts/activate
42-
export UV_PIP_OPTS="--no-binary tensorflow-io-gcs-filesystem"
41+
. .\.venv\Scripts\Activate.ps1
42+
$env:UV_PIP_OPTS="--no-binary tensorflow-io-gcs-filesystem"
4343
uv pip install -r requirements.txt
4444
uv pip install -r ch05/07_gpt_to_llama/tests/test-requirements-extra.txt
4545
uv pip install pytest-ruff nbval
4646
uv pip install --force-reinstall matplotlib "numpy<2.1"
4747
4848
- name: Run Python Tests
49-
shell: bash
49+
shell: pwsh
5050
run: |
51-
source .venv/Scripts/activate
52-
export PYTHONPATH=".venv/lib/python3.11/site-packages:$PYTHONPATH"
53-
export PATH="$(pwd)/.venv/bin:$PATH"
51+
$env:Path = "C:\Users\runneradmin\.local\bin;$env:Path"
52+
. .\.venv\Scripts\Activate.ps1
5453
pytest --ruff setup/02_installing-python-libraries/tests.py
5554
pytest --ruff ch04/01_main-chapter-code/tests.py
5655
pytest --ruff ch05/01_main-chapter-code/tests.py
5756
pytest --ruff ch05/07_gpt_to_llama/tests/tests.py
5857
pytest --ruff ch06/01_main-chapter-code/tests.py
5958
6059
- name: Run Jupyter Notebook Tests
61-
shell: bash
60+
shell: pwsh
6261
run: |
63-
source .venv/Scripts/activate
64-
export PYTHONPATH=".venv/lib/python3.11/site-packages:$PYTHONPATH"
65-
export PATH="$(pwd)/.venv/bin:$PATH"
62+
$env:Path = "C:\Users\runneradmin\.local\bin;$env:Path"
63+
. .\.venv\Scripts\Activate.ps1
6664
pytest --ruff --nbval ch02/01_main-chapter-code/dataloader.ipynb
6765
pytest --ruff --nbval ch03/01_main-chapter-code/multihead-attention.ipynb
68-
pytest --ruff --nbval ch02/04_bonus_dataloader-intuition/dataloader-intuition.ipynb
66+
pytest --ruff --nbval ch02/04_bonus_dataloader-intuition/dataloader-intuition.ipynb

0 commit comments

Comments
 (0)