-
Notifications
You must be signed in to change notification settings - Fork 40
140 lines (133 loc) · 4.86 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
# 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:
test_default:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
include:
- os: macos-latest
python-version: 3.9
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -q "pandas<2.0" "XlsxWriter<3.0.5" -r requirements.txt -r requirements-zhcn.txt -r requirements-dask.txt -r requirements-fg.txt -r requirements-extra.txt
pip install -q pytest-cov==2.4.0 python-coveralls codacy-coverage
pip list
- name: Test with pytest
run: |
pytest --cov=hypernets --durations=30
test_dask_ft:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# os: [ubuntu-latest, windows-latest]
os: [windows-latest, ubuntu-latest]
python-version: [3.8, ]
ft-version: [0.27]
woodwork-version: [0.13.0]
dask-version: [2021.1.1, 2021.7.2]
include:
- os: ubuntu-20.04
python-version: 3.6
ft-version: 0.23
woodwork-version: 0.1.0
dask-version: 2021.1.1
- os: ubuntu-latest
python-version: 3.7
ft-version: 1.2
woodwork-version: 0.13.0
dask-version: 2021.10.0
- os: ubuntu-latest
python-version: 3.8
ft-version: 1.2
woodwork-version: 0.13.0
dask-version: 2022.12.1
- os: windows-latest
python-version: 3.8
ft-version: 1.2
woodwork-version: 0.13.0
dask-version: 2022.12.1
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -q dask==${{ matrix.dask-version }} distributed==${{ matrix.dask-version }} dask-ml "featuretools==${{ matrix.ft-version }}" woodwork==${{ matrix.woodwork-version }} "pandas<1.5.0"
pip install -q -r requirements.txt -r requirements-zhcn.txt -r requirements-extra.txt "pandas<2.0" "scikit-learn<1.1.0" "XlsxWriter<3.0.5" "pyarrow<=4.0.0"
pip install -q pytest-cov==2.4.0 python-coveralls codacy-coverage
pip list
- name: Test with pytest
run: |
pytest --cov=hypernets --durations=30
test_without_dask_ft:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
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: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -q -r requirements.txt "pandas<2.0" "scikit-learn<1.1.0" "XlsxWriter<3.0.5"
pip install -q pytest-cov==2.4.0 python-coveralls codacy-coverage
pip list
- name: Test with pytest
run: |
pytest --cov=hypernets --durations=30
#
# test_without_geohash:
# runs-on: ${{ matrix.os }}
# strategy:
# fail-fast: false
# matrix:
# os: [ubuntu-latest, ]
# python-version: [3.7, 3.8]
# # dask-version: [2021.7.2,]
# steps:
# - uses: actions/checkout@v2
# - name: Set up Python ${{ matrix.python-version }}
# uses: actions/setup-python@v2
# with:
# python-version: ${{ matrix.python-version }}
# # # pip install -q dask==${{ matrix.dask-version }} distributed==${{ matrix.dask-version }} dask-ml "pandas<1.5.0"
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install -q "dask<=2023.2.0" "distributed<=2023.2.0" dask-ml "pandas<1.5.0"
# pip install -q -r requirements.txt -r requirements-zhcn.txt "pandas<2.0" "scikit-learn<1.1.0" "XlsxWriter<3.0.5"
# pip install -q pytest-cov==2.4.0 python-coveralls codacy-coverage
# pip list
# - name: Test with pytest
# run: |
# pytest --cov=hypernets --durations=30