-
Notifications
You must be signed in to change notification settings - Fork 7
51 lines (39 loc) · 1.16 KB
/
pipeline_tests.yml
File metadata and controls
51 lines (39 loc) · 1.16 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
name: Pipeline tests
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
ASPARAGUS_MODELS: "${{ github.workspace }}/models"
#ASPARAGUS: "${{ github.workspace }}/tests/models"
HYDRA_FULL_ERROR: 1
jobs:
pipeline-tests:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: pip
- name: Install CPU-only torch then package
run: |
pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
pip install -e ".[test]"
- name: Run pretrain test
run: |
pytest tests/test_pretrain.py -v --timeout=300
- name: Run finetune_seg test
run: |
pytest tests/test_finetune_seg.py -v --timeout=300
- name: Run train_reg test
run: |
pytest tests/test_train_reg.py -v --timeout=300
- name: Run test_cls test
run: |
pytest tests/test_test_cls.py -v --timeout=300
- name: Run linear probe test
run: |
pytest tests/test_linear_probe.py -v --timeout=300