-
Notifications
You must be signed in to change notification settings - Fork 246
180 lines (166 loc) · 6.11 KB
/
build.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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
# ----------------------------------------------------------------------------
# Copyright (C) 2021-2023 Deepchecks (https://www.deepchecks.com)
#
# This file is part of Deepchecks.
# Deepchecks is distributed under the terms of the GNU Affero General
# Public License (version 3 or later).
# You should have received a copy of the GNU Affero General Public License
# along with Deepchecks. If not, see <http://www.gnu.org/licenses/>.
# ----------------------------------------------------------------------------
#
name: Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main, nlp-base]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
DISABLE_DEEPCHECKS_ANONYMOUS_TELEMETRY: "true"
FAIL_ON_DEEPCHECKS_DEPRECATION_WARNINGS: "true"
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9"] #TODO: add 3.10 when upgrading torch to 1.11
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Set Up Env
run: make env
- name: pip freeze
run: make freeze
# - name: Debugging with ssh
# uses: lhotari/action-upterm@v1
# with:
# ## limits ssh access and adds the ssh public key for the user which triggered the workflow
# limit-access-to-actor: true
- name: Run Tests
run: make test
coverage:
runs-on: ubuntu-latest
name: coveralls
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: "3.9"
- name: Set Up Env
run: make env
- name: Run Coverage
run: make coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tests-tabular-python36:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.6
uses: actions/setup-python@v3
with:
python-version: 3.6
- name: Set Up Env
run: make env
- name: Run Tests
run: make test-tabular-only
tests-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: 3.9 #TODO: add 3.10 when scikit-learn have a wheel https://github.com/scikit-learn/scikit-learn/pull/21232
- name: Run Tests
run: make test-win
scikit-tests:
runs-on: ubuntu-latest
strategy:
matrix:
scikit-version: [ '0.23.2', '1.0.2', '1.1.0' ]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: "3.8"
- name: Setup env and dev requirements
run: make env requirements dev-requirements && pip install scikit-learn==${{ matrix.scikit-version }}
- name: Run suite test
run: make test args=tests/tabular/suites
dependencies-license-check:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: '3.7'
- name: Get explicit and transitive dependencies
run: |
pip3 install torch==1.10.2+cpu torchvision==0.11.3+cpu -f https://download.pytorch.org/whl/cpu/torch_stable.html
pip install -r requirements/requirements.txt
pip install -r requirements/vision-requirements.txt
pip install -r requirements/nlp-requirements.txt
pip freeze > requirements-all.txt
- name: Check python
id: license_check_report
uses: pilosus/action-pip-license-checker@v0.6.1
with:
requirements: 'requirements-all.txt'
fail: 'Copyleft,Other,Error'
exclude: '(pyzmq.*24\.0\.1|debugpy.*1\.6\.7\.post1|certifi.*2023\.11\.17|tqdm.*4\.66\.1|webencodings.*0\.5\.1|torch.*1\.10\.2.*|torchvision.*0\.11\.3.*|terminado.*0\.15\.0.*|urllib3.*1\.26\.11.*|imageio.*2\.20\.0.*|jsonschema.*4\.8\.0.*|qudida.*0\.0\.4*|tbb.*2021\.10\.0)'
# pyzmq is Revised BSD https://github.com/zeromq/pyzmq/blob/main/examples/LICENSE
# debugpy is MIT https://github.com/microsoft/debugpy/blob/main/LICENSE
# certifi is MPL-2.0 https://github.com/certifi/python-certifi/blob/master/LICENSE
# tqdm is MPL-2.0 https://github.com/tqdm/tqdm/blob/master/LICENCE
# webencodings is BSD https://github.com/gsnedders/python-webencodings/blob/master/LICENSE
# torch is BSD https://github.com/pytorch/pytorch/blob/master/LICENSE
# torchvision is BSD https://github.com/pytorch/vision/blob/main/LICENSE
# terminado is BSD https://github.com/jupyter/terminado/blob/main/LICENSE
# urllib3 is MIT https://github.com/urllib3/urllib3/blob/main/LICENSE.txt
# imagio is BSD 2 https://github.com/imageio/imageio/blob/master/LICENSE
# jsonschema is MIT license https://github.com/python-jsonschema/jsonschema/blob/main/COPYING
# debugpy is MIT license https://github.com/microsoft/debugpy/blob/main/LICENSE
# qudida is MIT license https://github.com/arsenyinfo/qudida/blob/main/LICENSE
# tbb is Apache License 2.0 https://github.com/oneapi-src/oneTBB/blob/master/LICENSE
- name: Print report
if: ${{ always() }}
run: echo "${{ steps.license_check_report.outputs.report }}"
gpu-tests:
runs-on: [self-hosted, gpu]
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.7'
- name: Set Up Env
run: make env
- name: Run Tests
run: make vision-gpu-tests
# documentation-check:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-node@v1
# with:
# node-version: '14.x'
# - name: Test Build
# run: |
# make website
# cd docs/_website
# if [ -e package-lock.json ]; then
# npm ci
# else
# npm i
# fi
# npm run build