Skip to content

Commit

Permalink
ci: add licence check to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
znichollscr committed Jun 9, 2023
1 parent 2156e81 commit 962cb3a
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,21 @@ jobs:
# can be changed to
# run: cz check --rev-range <commit-to-start-from-sha>..HEAD
run: cz check --rev-range HEAD

check-dependency-licences:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- uses: ./.github/actions/setup
with:
python-version: "3.9"
venv-id: "licence-check"
poetry-dependency-install-flags: "--all-extras"
- name: Check licences of dependencies
shell: bash
run: |
TEMP_FILE=$(mktemp)
poetry export --only=main --extras=cfxarray --extras=netcdf --extras=notebooks --extras=plots > $TEMP_FILE
poetry run liccheck -r $TEMP_FILE -R licence-check.txt
cat licence-check.txt

0 comments on commit 962cb3a

Please sign in to comment.