Skip to content

Commit 8264197

Browse files
Add executable baseline test workflow
1 parent 14ace3e commit 8264197

1 file changed

Lines changed: 62 additions & 0 deletions

File tree

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Baseline executable tests
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "baseline/**"
7+
- ".github/workflows/baseline-tests.yml"
8+
push:
9+
branches:
10+
- "agent/**"
11+
paths:
12+
- "baseline/**"
13+
- ".github/workflows/baseline-tests.yml"
14+
15+
permissions:
16+
contents: read
17+
18+
concurrency:
19+
group: baseline-tests-${{ github.ref }}
20+
cancel-in-progress: true
21+
22+
jobs:
23+
core-baselines:
24+
runs-on: ubuntu-latest
25+
timeout-minutes: 20
26+
steps:
27+
- uses: actions/checkout@v4
28+
- uses: actions/setup-python@v5
29+
with:
30+
python-version: "3.11"
31+
cache: pip
32+
cache-dependency-path: |
33+
baseline/pyproject.toml
34+
baseline/requirements.txt
35+
- name: Install core baseline package and test dependencies
36+
run: |
37+
python -m pip install --upgrade pip
38+
python -m pip install -e ./baseline
39+
python -m pip install nbformat
40+
- name: Run core baseline tests
41+
env:
42+
PYTHONPATH: baseline
43+
run: python -m unittest discover -s baseline/tests -v
44+
45+
one-head-nanogpt:
46+
runs-on: ubuntu-latest
47+
timeout-minutes: 20
48+
steps:
49+
- uses: actions/checkout@v4
50+
- uses: actions/setup-python@v5
51+
with:
52+
python-version: "3.11"
53+
cache: pip
54+
cache-dependency-path: baseline/nanogpt_one_head/pyproject.toml
55+
- name: Install one-head package and test dependencies
56+
run: |
57+
python -m pip install --upgrade pip
58+
python -m pip install -e './baseline/nanogpt_one_head[dev]'
59+
- name: Run one-head tests
60+
env:
61+
PYTHONPATH: baseline/nanogpt_one_head/src
62+
run: pytest -q baseline/nanogpt_one_head/tests

0 commit comments

Comments
 (0)