forked from Pixeptron-Vision/anomaly_detection_v2
-
Notifications
You must be signed in to change notification settings - Fork 0
116 lines (110 loc) · 3.48 KB
/
Copy pathci.yml
File metadata and controls
116 lines (110 loc) · 3.48 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
name: Homework CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
step1-preprocessing:
name: "Step 1: Preprocessing"
runs-on: ubuntu-latest
defaults:
run:
working-directory: final_project
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
pip install -r requirements.txt
- name: Run Step 1 tests
run: pytest tests/test_step1_preprocessing.py -v --tb=short
step2-dataset:
name: "Step 2: Dataset"
runs-on: ubuntu-latest
defaults:
run:
working-directory: final_project
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
pip install -r requirements.txt
- name: Run Step 2 tests
run: pytest tests/test_step2_dataset.py -v --tb=short
step3-model:
name: "Step 3: Model"
runs-on: ubuntu-latest
defaults:
run:
working-directory: final_project
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
pip install -r requirements.txt
- name: Run Step 3 tests
run: pytest tests/test_step3_model.py -v --tb=short
- name: "Style hints (advisory — won't affect your grade)"
if: always()
continue-on-error: true
run: pytest tests/test_step3_style.py -v --tb=short
step4-training:
name: "Step 4: Training"
runs-on: ubuntu-latest
defaults:
run:
working-directory: final_project
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
pip install -r requirements.txt
- name: Run Step 4 tests
run: pytest tests/test_step4_training.py -v --tb=short
- name: "Style hints (advisory — won't affect your grade)"
if: always()
continue-on-error: true
run: pytest tests/test_step4_style.py -v --tb=short
step5-inference:
name: "Step 5: Inference"
runs-on: ubuntu-latest
defaults:
run:
working-directory: final_project
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
pip install -r requirements.txt
- name: Run Step 5 tests
run: pytest tests/test_step5_inference.py -v --tb=short