forked from eliteservice1002/mlmodels
-
Notifications
You must be signed in to change notification settings - Fork 0
executable file
·95 lines (59 loc) · 1.74 KB
/
code_structure_linux.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
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
name: code_structure_linux
#on:
# push:
# branches:
# #- dev
on:
schedule:
# * is a special character in YAML so you have to quote this string
### Every 3 hours
- cron: '0 */6 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.6.*
uses: actions/setup-python@v1
with:
python-version: 3.6.*
- name: Install pipenv
uses: dschep/install-pipenv-action@v1
#- uses: actions/cache@v1
# id: cache
# with:
# path: ~/.cache/pip
# key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
# restore-keys: |
# ${{ runner.os }}-pip-
- name: Cache pipenv virtualenv
id: cache-pipenv
uses: actions/cache@v1
with:
path: /opt/hostedtoolcache/Python/
key: ${{ runner.os }}-venv-mlmodels-${{ hashFiles('**/requirements.txt') }}
- name: Install numpy
if: steps.cache-pipenv.outputs.cache-hit != 'true'
run: pip install numpy
- name: Install repo requirements 1
if: steps.cache-pipenv.outputs.cache-hit != 'true'
run: |
pip install -r requirements.txt
- name: Install repo requirements 2
if: steps.cache-pipenv.outputs.cache-hit != 'true'
run: |
pip install -r requirements_fake.txt
- name: Install repo
run: pip install -e . -r requirements.txt --no-deps
- name: repo path
run: python run_basic_check.py
######## Test running
- name: ml_optim
run: ml_optim
- name: ml_test
run: ml_test --do test_all
# https://ianwhitestone.work/AWS-Serverless-Deployments-With-Github-Actions/
#
#
#
#