Skip to content

Commit

Permalink
Add linting, typing, and unit test pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
jpwahle committed Oct 5, 2021
1 parent 35b3f05 commit 0f0ea13
Show file tree
Hide file tree
Showing 4 changed files with 884 additions and 459 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/tests.yml
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
Loading

0 comments on commit 0f0ea13

Please sign in to comment.