forked from eliteservice1002/mlmodels
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_fast_windows.yml_
executable file
·84 lines (51 loc) · 1.67 KB
/
test_fast_windows.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
name: test_fast_windows
on:
push:
branches:
- dev
jobs:
build:
runs-on: windows-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_wi.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 }}-pipenv-${{ hashFiles('**/requirements_wi.txt') }}
- name: Install numpy
if: steps.cache-pipenv.outputs.cache-hit != 'true'
run: |
pip install numpy<1.17.0
# pip install torch==0.4.1 -f https://download.pytorch.org/whl/torch_stable.html
pip install torch==1.0.1 -f https://download.pytorch.org/whl/torch_stable.html
- name: Install repo requirements
if: steps.cache-pipenv.outputs.cache-hit != 'true'
run: |
pip install -r requirements_wi.txt
pip install -r requirements_fake.txt
- name: Install repo
run: pip install -e . -r requirements_wi.txt --no-deps
- name: Repo Check
run: python -c "import mlmodels,os ; print(mlmodels); print(os)"
######## Test running
- name: ml_optim
run: ml_optim
- name: ml_models
run: ml_models
#- name: ml_test
# run: ml_test