-
Notifications
You must be signed in to change notification settings - Fork 1
66 lines (61 loc) · 1.92 KB
/
Copy pathbaseline-tests.yml
File metadata and controls
66 lines (61 loc) · 1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Baseline executable tests
on:
pull_request:
paths:
- "baseline/**"
- ".github/workflows/baseline-tests.yml"
push:
branches:
- "agent/**"
paths:
- "baseline/**"
- ".github/workflows/baseline-tests.yml"
permissions:
contents: read
concurrency:
group: baseline-tests-${{ github.ref }}
cancel-in-progress: true
jobs:
core-baselines:
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: pip
cache-dependency-path: |
baseline/pyproject.toml
baseline/requirements.txt
- name: Install CPU PyTorch and the complete baseline test environment
run: |
python -m pip install --upgrade pip
python -m pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
python -m pip install -e './baseline[experiment]'
python -m pip install nbformat
- name: Run core baseline tests
env:
PYTHONPATH: baseline
MPLBACKEND: Agg
run: python -m unittest discover -s baseline/tests -v
one-head-nanogpt:
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: pip
cache-dependency-path: baseline/nanogpt_one_head/pyproject.toml
- name: Install CPU PyTorch and one-head test dependencies
run: |
python -m pip install --upgrade pip
python -m pip install torch --index-url https://download.pytorch.org/whl/cpu
python -m pip install -e './baseline/nanogpt_one_head[dev]'
- name: Run one-head tests
env:
PYTHONPATH: baseline/nanogpt_one_head/src
MPLBACKEND: Agg
run: pytest -q baseline/nanogpt_one_head/tests