Skip to content

Commit 6b5edd7

Browse files
Install complete baseline test dependencies
1 parent 8264197 commit 6b5edd7

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

.github/workflows/baseline-tests.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ concurrency:
2222
jobs:
2323
core-baselines:
2424
runs-on: ubuntu-latest
25-
timeout-minutes: 20
25+
timeout-minutes: 25
2626
steps:
2727
- uses: actions/checkout@v4
2828
- uses: actions/setup-python@v5
@@ -32,31 +32,35 @@ jobs:
3232
cache-dependency-path: |
3333
baseline/pyproject.toml
3434
baseline/requirements.txt
35-
- name: Install core baseline package and test dependencies
35+
- name: Install CPU PyTorch and the complete baseline test environment
3636
run: |
3737
python -m pip install --upgrade pip
38-
python -m pip install -e ./baseline
38+
python -m pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
39+
python -m pip install -e './baseline[experiment]'
3940
python -m pip install nbformat
4041
- name: Run core baseline tests
4142
env:
4243
PYTHONPATH: baseline
44+
MPLBACKEND: Agg
4345
run: python -m unittest discover -s baseline/tests -v
4446

4547
one-head-nanogpt:
4648
runs-on: ubuntu-latest
47-
timeout-minutes: 20
49+
timeout-minutes: 25
4850
steps:
4951
- uses: actions/checkout@v4
5052
- uses: actions/setup-python@v5
5153
with:
5254
python-version: "3.11"
5355
cache: pip
5456
cache-dependency-path: baseline/nanogpt_one_head/pyproject.toml
55-
- name: Install one-head package and test dependencies
57+
- name: Install CPU PyTorch and one-head test dependencies
5658
run: |
5759
python -m pip install --upgrade pip
60+
python -m pip install torch --index-url https://download.pytorch.org/whl/cpu
5861
python -m pip install -e './baseline/nanogpt_one_head[dev]'
5962
- name: Run one-head tests
6063
env:
6164
PYTHONPATH: baseline/nanogpt_one_head/src
65+
MPLBACKEND: Agg
6266
run: pytest -q baseline/nanogpt_one_head/tests

0 commit comments

Comments
 (0)