Skip to content

Commit

Permalink
add pytest to dev deps, automate license checking
Browse files Browse the repository at this point in the history
Signed-off-by: Lucca Baumgärtner <[email protected]>
  • Loading branch information
luccalb committed Oct 28, 2023
1 parent e3af52d commit eb99f8c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,17 @@ jobs:
pip install flake8 pytest pipenv
# if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pipenv install
- name: Get all dependencies
run: |
pip freeze > requirements-all.txt
- name: Check copyright
id: license_check_report
uses: pilosus/action-pip-license-checker@v2
with:
requirements: "requirements-all.txt"
fail: "Copyleft"
- name: Print copyright report
run: echo "${{ steps.license_check_report.outputs.report }}"
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
Expand Down
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ verify_ssl = true
name = "pypi"

[dev-packages]
pytest = "==7.4.3"

[packages]

Expand Down

0 comments on commit eb99f8c

Please sign in to comment.