Skip to content

Commit

Permalink
Rework audit-licenses check [ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p committed Oct 1, 2024
1 parent dcb6c9a commit 89dce5f
Show file tree
Hide file tree
Showing 3 changed files with 263 additions and 69 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,10 @@ jobs:
&& github.event.inputs.mypy-only != 'true'
|| github.event.inputs.audit-licenses-only == 'true')
&& needs.info.outputs.requirements == 'true'
strategy:
fail-fast: false
matrix:
python-version: ${{ fromJson(needs.info.outputs.python_versions) }}
steps:
- name: Check out code from GitHub
uses: actions/checkout@v4.2.0
Expand All @@ -636,16 +640,16 @@ jobs:
- name: Run pip-licenses
run: |
. venv/bin/activate
pip-licenses --format=json --output-file=licenses.json
pip-licenses --from=all --format=json --output-file=licenses-${{ matrix.python-version }}.json
- name: Upload licenses
uses: actions/upload-artifact@v4.4.0
with:
name: licenses
path: licenses.json
name: licenses-${{ matrix.python-version }}
path: licenses*.json
- name: Process licenses
run: |
. venv/bin/activate
python -m script.licenses licenses.json
python -m script.licenses licenses-${{ matrix.python-version }}.json
pylint:
name: Check pylint
Expand Down
1 change: 1 addition & 0 deletions requirements_test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
astroid==3.3.4
coverage==7.6.1
freezegun==1.5.1
license-expression==30.3.0
mock-open==1.4.0
mypy-dev==1.12.0a3
pre-commit==3.8.0
Expand Down
Loading

0 comments on commit 89dce5f

Please sign in to comment.