From 4e7826d6378f44e6937fe50634ee8b4623d1d5ad Mon Sep 17 00:00:00 2001 From: Nicola Coretti Date: Thu, 6 Jul 2023 14:34:40 +0200 Subject: [PATCH] Add license check job to ci checks --- .github/workflows/checks.yml | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 1f81368b6..b7e964ed6 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -24,9 +24,25 @@ jobs: - name: Check Version(s) run: poetry run version-check `poetry run python -c "from noxconfig import PROJECT_CONFIG; print(PROJECT_CONFIG.version_file)"` + license-check-job: + name: Check Licences + runs-on: ubuntu-latest + + steps: + - name: SCM Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Setup Python & Poetry Environment + uses: ./.github/actions/python-environment + + - name: Check Version(s) + run: poetry run python -m nox -s audit + build-documentation-job: name: Build Documentation - needs: [ version-check-job ] + needs: [ version-check-job, license-check-job ] runs-on: ubuntu-latest steps: @@ -42,7 +58,7 @@ jobs: lint-job: name: Linting (Python-${{ matrix.python-version }}) - needs: [ version-check-job ] + needs: [ version-check-job, license-check-job ] runs-on: ubuntu-latest strategy: fail-fast: false @@ -69,7 +85,7 @@ jobs: type-check-job: name: Type Checking (Python-${{ matrix.python-version }}) - needs: [ version-check-job ] + needs: [ version-check-job, license-check-job ] runs-on: ubuntu-latest strategy: fail-fast: false