forked from espositoandrea/Dementia-Detection
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtrain.yml
57 lines (54 loc) · 1.6 KB
/
train.yml
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
name: Train
on:
push:
branches: [main]
# Publish semver tags as releases.
tags: ["v*.*.*"]
jobs:
train:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v2
id: cache-venv
with:
path: ./.venv/
key: ${{ runner.os }}-venv-${{ hashFiles('**/Pipfile') }}
restore-keys: |
${{ runner.os }}-venv-
- name: Set up DVC
uses: iterative/setup-dvc@v1
- name: Pull data
run: |
export GDRIVE_CREDENTIALS_DATA='${{ secrets.GDRIVE_CREDENTIALS_DATA }}'
dvc pull
- name: Install venv manager
run: |
python -m pip install --upgrade pip
pip install pipenv
- name: Install dependencies
run: |
mkdir .venv
PIPENV_VENV_IN_PROJECT=1 pipenv install --dev --skip-lock
if: steps.cache-venv.outputs.cache-hit != 'true'
- name: Check raw data
run: |
great_expectations --v3-api checkpoint run clinical-data
great_expectations --v3-api checkpoint run pup
- name: Run pipeline
run: |
pipenv run dvc repro
- name: Check final data
run: |
great_expectations --v3-api checkpoint run labelled-images
great_expectations --v3-api checkpoint run labels
- name: Push results
run: |
dvc push