Jonatan/mon 2641 remove launchdarkly (#384) #320
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-2022 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: License Check | |
env: | |
DISABLE_DEEPCHECKS_ANONYMOUS_TELEMETRY: "true" | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
DEEPCHECKS_CI_TOKEN: ${{ secrets.DEEPCHECKS_CI_TOKEN }} | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
backend-license-check: | |
runs-on: ubuntu-latest | |
if: "!github.event.pull_request.draft" | |
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.11 | |
- name: Get explicit and transitive dependencies | |
run: | | |
pip install -U pip==22.0.4 setuptools==58.3.0 | |
pip install -q -r requirements.txt | |
pip freeze > requirements-all.txt | |
working-directory: ./backend | |
- name: Check python | |
id: license_check_report | |
uses: pilosus/action-pip-license-checker@v0.6.1 | |
with: | |
requirements: "backend/requirements-all.txt" | |
fail: "Copyleft,Other,Error" | |
exclude: '(envier.*0\.5\.0|psycopg2.*2\.9\.3|fqdn.*1\.5\.1|pyzmq.*25\.1\.2|debugpy.*1\.6\.7|certifi.*2024\.8\.30|tqdm.*4\.67\..*|webencodings.*0\.5\.1|torch.*1\.10\.2.*|torch.*1\.11\.0.*|pytorch-ignite.*0\.4\.10.*|torchaudio.*0\.11\.0.*|torchvision.*0\.12\.0.*|terminado.*0\.15\.0|qudida.*0\.0\.4|expiringdict.*1\.2\.2|botocore.*1\.29\.80|orderedmultidict.*1\.0\.1|deepchecks.*)' | |
# psycopg2 is LGPL 2 | |
# 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 | |
# torchaudio is BSD https://github.com/pytorch/audio/blob/main/LICENSE | |
# terminado is BSD https://github.com/jupyter/terminado/blob/main/LICENSE | |
# orderedmultidict is freeley distributed https://github.com/gruns/orderedmultidict/blob/master/LICENSE.md | |
- name: Print report | |
if: ${{ always() }} | |
run: echo "${{ steps.license_check_report.outputs.report }}" | |
frontend-license-check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- run: npm install --production=false | |
working-directory: ./frontend | |
- run: ./node_modules/license-checker/bin/license-checker --production --onlyAllow "MIT;ISC;BSD;Apache-2.0;Python-2.0;CC0-1.0;Unlicense;CC-BY-4.0" --excludePackages "axe-core@4.4.3;caniuse-lite@1.0.30001599;lz-string@1.4.4;@mapbox/jsonlint-lines-primitives@2.0.2;gl-mat4@1.2.0" --summary --excludePrivatePackages | |
working-directory: ./frontend | |
# axe-core is MPL-2.0 https://www.npmjs.com/package/axe-core | |
# caniuse-lite is CC-BY-4.0 https://github.com/browserslist/caniuse-lite/blob/main/LICENSE | |
# lz-string is WTFPL (MIT) https://github.com/pieroxy/lz-string/blob/master/LICENSE | |
# @mapbox/jsonlint-lines-primitives is MIT https://github.com/tmcw/jsonlint | |
# gl-mat is zlib license |