-
Notifications
You must be signed in to change notification settings - Fork 118
86 lines (82 loc) · 2.67 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
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
# 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: [ master ]
pull_request:
branches: [ master ]
schedule:
# since * is a special character in YAML you have to quote this string
- cron: '0 22 1/7 * *'
jobs:
default:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10"]
tf-version: ["2.16.2", "2.17", "2.18.0"]
# include:
# - python-version: "3.10"
# tf-version: "2.17"
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: System informations
run: |
uname -a
free -g
pwd
- name: Install dependencies
run: |
python --version
python -m pip install --upgrade pip
pip install tensorflow==${{ matrix.tf-version }} "numpy<2"
pip install git+https://github.com/DataCanvasIO/Hypernets
pip install -r requirements.txt "protobuf<4.0" "numpy<2"
pip install pytest-cov==2.4.0 python-coveralls codacy-coverage
pip list
- name: Test with pytest
run: |
pytest --cov=deeptables --durations=30 -k "not dask and not batch_trainer"
#
# py36_37:
# runs-on: ubuntu-20.04
# strategy:
# fail-fast: false
# matrix:
# python-version: [3.7, 3.6]
# tf-version: [2.1.0, 2.2.0, 2.3.1, 2.4.2]
## exclude:
## - tf-version: 2.1.0
## python-version: 3.8
## - tf-version: 2.2.0
## python-version: 3.8
#
# steps:
# - uses: actions/checkout@v2
# - name: Set up Python ${{ matrix.python-version }}
# uses: actions/setup-python@v2
# with:
# python-version: ${{ matrix.python-version }}
# - name: System informations
# run: |
# uname -a
# free -g
# pwd
# - name: Install dependencies
# run: |
# python --version
# python -m pip install --upgrade pip
# pip install tensorflow==${{ matrix.tf-version }}
# pip install git+https://github.com/DataCanvasIO/Hypernets
# pip install -r requirements.txt "protobuf<4.0" "numpy==1.19.5" "featuretools<=0.27" "h5py==2.10.0"
# pip install pytest-cov==2.4.0 python-coveralls codacy-coverage
# pip list
# - name: Test with pytest
# run: |
# pytest --cov=deeptables --durations=30 -k "not dask and not batch_trainer"