Skip to content

Commit

Permalink
Update license tests to maintained GH Action (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel authored Jan 18, 2023
1 parent 83bb859 commit 8c19ef6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 65 deletions.
28 changes: 18 additions & 10 deletions .github/workflows/license_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,32 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install Build Tools
run: |
python -m pip install build wheel
- name: Install System Dependencies
run: |
sudo apt-get update
sudo apt install python3-dev swig libssl-dev
- name: Install core repo
run: |
pip install .
- name: Install licheck
run: |
pip install git+https://github.com/NeonJarbas/lichecker
- name: Install test dependencies
- name: Get explicit and transitive dependencies
run: |
pip install pytest pytest-timeout pytest-cov
- name: Test Licenses
run: |
pytest test/license_tests.py
pip freeze > requirements-all.txt
- name: Check python
id: license_check_report
uses: pilosus/action-pip-license-checker@v0.5.0
with:
requirements: 'requirements-all.txt'
fail: 'Copyleft,Other,Error'
fails-only: true
exclude: '^(tqdm).*'
exclude-license: '^(Mozilla).*$'
- name: Print report
if: ${{ always() }}
run: echo "${{ steps.license_check_report.outputs.report }}"
55 changes: 0 additions & 55 deletions test/license_tests.py

This file was deleted.

0 comments on commit 8c19ef6

Please sign in to comment.