-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (47 loc) · 1.35 KB
/
pytest.yaml
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
name: Pytest
on:
push:
branches:
- stage
paths:
- 'src/**'
- 'tests/**'
- '!tests/model_testing/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Repo checkout
uses: actions/checkout@v4
- name: Python setup
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: DVC setup
uses: iterative/setup-dvc@v1
- name: Install requirements
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Prepare data and model
env:
GDRIVE_CREDENTIALS_DATA: ${{ secrets.GDRIVE_CREDENTIALS_DATA }}
run: |
dvc pull data/Train
dvc pull models/model.pt
dvc repro preprocess_train
- name: Test dataset
run: |
python -m pytest tests/dataset_testing/
- name: Test preprocessing functions
run: |
python -m pytest --disable-warnings tests/preprocessing_testing/
- name: Test model behavior
run: |
python -m pytest --disable-warnings tests/behavioral_testing/
- name: Test APIs
run: |
python -m pytest --disable-warnings tests/api_testing/
# - name: Test model training
# run: |
# python -m pytest --disable-warnings tests/model_testing/