-
Notifications
You must be signed in to change notification settings - Fork 30
60 lines (49 loc) · 1.71 KB
/
python-pytest.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
# 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 ]
schedule:
# since * is a special character in YAML you have to quote this string
- cron: '0 22 1/7 * *'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ["3.7", "3.8", "3.9", "3.10"] # feature-tools only update to 0.23.3 on python3.6 and the latest is 1.2.0(2021/11)
tf-version: ["\">=2.0.0,<=2.10\"", "disable"] # empty string indicates the latest version
# exclude:
# - os: windows-latest
# python-version: "==2.10"
# - os: windows-latest
# tf-version: ""
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
# pip install "sktime<=0.17.2"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install git+https://github.com/DataCanvasIO/Hypernets
pip install -r requirements.txt
pip install pytest-cov python-coveralls codacy-coverage
- name: Install tensorflow dependencies
if: ${{ matrix.tf-version != 'disable' }}
run: |
pip install tensorflow${{ matrix.tf-version }}
- name: pip list
run: |
pip list
pip check
- name: Test with pytest
run: |
pytest --cov=hyperts --durations=30