Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[run]
omit = */__init__.py
29 changes: 27 additions & 2 deletions .github/workflows/quality_checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,20 @@ jobs:
python -m pip install --upgrade pip poetry
poetry install
- name: Run unit tests
run: poetry run pytest
run: >
poetry run pytest
--json-report --json-report-file=pytest_report.json --json-report-omit collectors log streams
--cov src --cov-report term --cov-report html
- name: Upload reports
if: always() # upload even if tests fail
uses: actions/upload-artifact@v4
with:
name: pytest-reports-${{ matrix.python-version }}
path: |
htmlcov/
pytest_report.json
if-no-files-found: error
retention-days: 14

run_quality_checks:
runs-on: ubuntu-latest
Expand All @@ -54,7 +67,19 @@ jobs:
pre-commit install --hook-type commit-msg
pre-commit run -a
- name: Run mypy
run: MYPYPATH=src poetry run mypy --install-types --non-interactive src
run: >
MYPYPATH=src poetry run mypy src
--install-types --non-interactive
--html-report mypy-report/html
- name: Upload reports
if: always() # upload even if tests fail
uses: actions/upload-artifact@v4
with:
name: mypy-report
path: |
mypy-report/
if-no-files-found: error
retention-days: 14

test_docs_are_building:
runs-on: ubuntu-latest
Expand Down
Loading