This repository has been archived by the owner on Nov 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
2,228 additions
and
424 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,18 +6,13 @@ on: | |
pull_request: | ||
branches: | ||
- dev | ||
paths: | ||
- 'requirements/**' | ||
- 'setup.py' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
license_tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
- name: Setup Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
|
@@ -32,12 +27,18 @@ jobs: | |
- 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/[email protected] | ||
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 }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,72 @@ | ||
dev.env | ||
.dev_opts.json | ||
.idea | ||
*.code-workspace | ||
*.pyc | ||
*.swp | ||
*~ | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
env/ | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
*.egg-info/ | ||
build | ||
dist | ||
.installed.cfg | ||
*.egg | ||
pip-wheel-metadata/ | ||
|
||
# PyInstaller | ||
# Usually these files are written by a python script from a template | ||
# before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
*.manifest | ||
*.spec | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.nox/ | ||
.coverage | ||
/htmlcov | ||
.installed | ||
.mypy_cache | ||
.vscode | ||
.theia | ||
.venv/ | ||
|
||
# Created by unit tests | ||
.pytest_cache/ | ||
.coverage.* | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
*,cover | ||
.hypothesis/ | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
*.log | ||
local_settings.py | ||
|
||
# Sphinx documentation | ||
docs/_build/ | ||
|
||
# PyBuilder | ||
target/ | ||
|
||
# Ipython Notebook | ||
.ipynb_checkpoints | ||
|
||
# pyenv | ||
.python-version | ||
|
||
# poetry | ||
poetry.lock | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
include README.md | ||
include requirements.txt | ||
include CHANGELOG.md | ||
include LICENSE |
Oops, something went wrong.