-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add linting, typing, and unit test pipeline
- Loading branch information
Showing
4 changed files
with
884 additions
and
459 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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# .github/workflows/tests.yml | ||
name: Tests | ||
on: push | ||
jobs: | ||
typing: | ||
runs-on: [self-hosted, linux, dke] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.7 | ||
- name: Run typer | ||
run: | | ||
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python - | ||
poetry install | ||
poetry run py.test tests -s --cov=nlpland --cov-report=term-missing --cov-fail-under 95 | ||
linting: | ||
runs-on: [self-hosted, linux, dke] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.7 | ||
- name: Run linter | ||
run: | | ||
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python - | ||
poetry install | ||
poetry run pylint nlpland -j 4 --reports=y | ||
tests: | ||
runs-on: [self-hosted, linux, dke] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.7 | ||
- name: Run tests | ||
run: | | ||
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python - | ||
poetry install | ||
poetry run pyright nlpland |
Oops, something went wrong.