forked from DataCanvasIO/HyperTS
-
Notifications
You must be signed in to change notification settings - Fork 1
101 lines (85 loc) · 2.99 KB
/
python-pytest.yml
File metadata and controls
101 lines (85 loc) · 2.99 KB
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
96
97
98
99
100
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Python pytest
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
python-version: [3.7, 3.8] # feature-tools only update to 0.23.3 on python3.6 and the latest is 1.2.0(2021/11)
tf_switch: [tf_Y, tf_N]
prophet_switch: [prophet_Y, prophet_N]
include:
- os: ubuntu-latest
python-version: 3.7
prophet-build: py37h085eea5_3
pystan-build: py37h9fdb41a_2
- os: ubuntu-latest
python-version: 3.8
prophet-build: py38hd0cf306_3
pystan-build: py38hc5bc63f_2
- os: windows-latest
python-version: 3.7
prophet-build: py37h7813e69_3
pystan-build: py37h631819c_3
- os: windows-latest
python-version: 3.8
prophet-build: py38h43734a8_3
pystan-build: py38h02adce6_3
exclude:
- os: windows-latest
python-version: 3.6
- tf_switch: tf_N
prophet_switch: prophet_N
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
- name: Show conda
shell: bash -l {0}
run: conda info
- name: Conda list pre
shell: bash -l {0}
run: conda list
- name: Install prophet dependencies
if: ${{ matrix.prophet_switch == 'prophet_Y' }}
shell: bash -l {0}
run: |
python -m pip install --upgrade pip
conda install -y -c conda-forge prophet=1.0.1=${{ matrix.prophet-build }}
conda install -y -c conda-forge pystan=2.19.1.1=${{ matrix.pystan-build }}
- name: Install dependencies
shell: bash -l {0}
run: |
python -m pip install --upgrade pip
conda install scikit-learn==0.24.2
conda install -y -c conda-forge sktime==0.8.1
conda install -y -c conda-forge python-geohash
pip install -q featuretools==0.27.1
pip install -q git+https://github.com/DataCanvasIO/Hypernets
pip install -q -r requirements.txt
pip install scipy==1.7.3
pip install -q pytest-cov==2.4.0 python-coveralls codacy-coverage
- name: Install tensorflow dependencies
if: ${{ matrix.tf_switch == 'prophet_Y' }}
shell: bash -l {0}
run: |
pip install -q tensorflow==2.4.2
pip install -q pyparsing==2.4.7
pip install -q protobuf==3.20.1
- name: Conda list
shell: bash -l {0}
run: conda list
- name: Test with pytest
shell: bash -l {0}
run: |
pytest --cov=hyperts --durations=30