-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (58 loc) · 1.77 KB
/
train-model-dry-run-workflow.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
name: Train model (Dry-Run)
on:
push:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7]
steps:
- name: Checkout
uses: actions/checkout@v2.3.3
with:
submodules: recursive
- name: Prepare Telegram token
id: prepare-telegram-token
run: echo $TELEGRAM_TOKEN | base64 --decode > ./lib/telegram.config
env:
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install graphviz
id: install-graphviz
run: sudo apt-get install -y graphviz
- name: Install dependencies
id: install-dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
pip install pandas
pip install matplotlib
pip install sklearn
pip install torch
pip install tqdm
pip install seaborn
pip install telegram-send
pip install gcloud
pip install google-api-core
pip install google-auth
pip install google-cloud-core
pip install google-cloud-storage
pip install dtaidistance
pip install torchviz
- name: Run main script with CNN
id: run-main-script-cnn
run: |
python main.py --dry-run --model=cnn
- name: Run main script with LSTM
id: run-main-script-lstm
run: |
python main.py --dry-run --model=lstm
- name: Run main script with KNN DTW
id: run-main-script-knn-dtw
run: |
python main.py --dry-run --model=knn-dtw