@@ -32,37 +32,35 @@ jobs:
32
32
python-version : " 3.13"
33
33
34
34
- name : Install dependencies
35
- shell : bash
35
+ shell : pwsh
36
36
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
40
40
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"
43
43
uv pip install -r requirements.txt
44
44
uv pip install -r ch05/07_gpt_to_llama/tests/test-requirements-extra.txt
45
45
uv pip install pytest-ruff nbval
46
46
uv pip install --force-reinstall matplotlib "numpy<2.1"
47
47
48
48
- name : Run Python Tests
49
- shell : bash
49
+ shell : pwsh
50
50
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
54
53
pytest --ruff setup/02_installing-python-libraries/tests.py
55
54
pytest --ruff ch04/01_main-chapter-code/tests.py
56
55
pytest --ruff ch05/01_main-chapter-code/tests.py
57
56
pytest --ruff ch05/07_gpt_to_llama/tests/tests.py
58
57
pytest --ruff ch06/01_main-chapter-code/tests.py
59
58
60
59
- name : Run Jupyter Notebook Tests
61
- shell : bash
60
+ shell : pwsh
62
61
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
66
64
pytest --ruff --nbval ch02/01_main-chapter-code/dataloader.ipynb
67
65
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