[DEE-456] nlp dummy model refactoring #8280
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ---------------------------------------------------------------------------- | |
# 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.*23\.2\.1|debugpy.*1\.6\.7|certifi.*2023\.5\.7|tqdm.*4\.65\.0|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)' | |
# 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 | |
- 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 test args=tests/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 |