@@ -35,28 +35,25 @@ jobs:
3535
3636 - name : Install dependencies
3737 run : |
38- python -m pip install --upgrade pip setuptools wheel
39- pip install uv
40- uv venv --python=python3.10
41- source .venv/bin/activate
42- uv pip install pytest nbval
43- uv pip install torch==${{ matrix.pytorch-version }}
44- uv pip install -r requirements.txt
38+ curl -LsSf https://astral.sh/uv/install.sh | sh
39+ uv python install 3.10
40+ uv add . --dev
4541 uv pip install -r ch05/07_gpt_to_llama/tests/test-requirements-extra.txt
46- uv pip install pytest
42+ uv add torch==${{ matrix.pytorch-version }}
43+ uv add pytest-ruff nbval
4744
4845 - name : Test Selected Python Scripts
4946 run : |
5047 source .venv/bin/activate
51- pytest setup/02_installing-python-libraries/tests.py
52- pytest ch04/01_main-chapter-code/tests.py
53- pytest ch05/01_main-chapter-code/tests.py
54- pytest ch05/07_gpt_to_llama/tests/tests.py
55- pytest ch06/01_main-chapter-code/tests.py
48+ pytest --ruff setup/02_installing-python-libraries/tests.py
49+ pytest --ruff ch04/01_main-chapter-code/tests.py
50+ pytest --ruff ch05/01_main-chapter-code/tests.py
51+ pytest --ruff ch05/07_gpt_to_llama/tests/tests.py
52+ pytest --ruff ch06/01_main-chapter-code/tests.py
5653
5754 - name : Validate Selected Jupyter Notebooks
5855 run : |
5956 source .venv/bin/activate
60- pytest --nbval ch02/01_main-chapter-code/dataloader.ipynb
61- pytest --nbval ch03/01_main-chapter-code/multihead-attention.ipynb
62- pytest --nbval ch02/04_bonus_dataloader-intuition/dataloader-intuition.ipynb
57+ pytest --ruff -- nbval ch02/01_main-chapter-code/dataloader.ipynb
58+ pytest --ruff -- nbval ch03/01_main-chapter-code/multihead-attention.ipynb
59+ pytest --ruff -- nbval ch02/04_bonus_dataloader-intuition/dataloader-intuition.ipynb
0 commit comments