-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (44 loc) · 1.37 KB
/
Copy pathtests.yml
File metadata and controls
52 lines (44 loc) · 1.37 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
name: Tests
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install torch==2.1.0 --index-url https://download.pytorch.org/whl/cpu
pip install numpy pytest pyyaml
pip install -e .
- name: Run paste losslessness test
run: pytest tests/test_paste_lossless.py -v
- name: Run rolling-training smoke tests
run: |
python -m layercake.rolling.cli --help
python scripts/demo_rolling_training.py --smoke
python scripts/demo_preview_guided_layercake_training.py --smoke
python scripts/benchmark_tier1_dominance.py --steps 2
pytest -q
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Lint with ruff
run: |
pip install ruff
ruff check model.py data.py baseline_lm.py paste_domain.py train_core.py train_domain.py