Skip to content

Commit

Permalink
build(deps): added pytest-profiling, fixed coverage, updated gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Nov 8, 2023
1 parent 5e7a4a7 commit 10ec565
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ jobs:
- name: Run tests
run: |
make test
make test SLOW=true
- name: Upload coverage
run: |
bash <(curl -s https://codecov.io/bash)
typecheck:
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ fmt:
poetry run black $(SRCDIRS)

test:
poetry run python3 -m pytest -v tests/ --cov=quantifiedme --durations=5
poetry run python3 -m pytest -v tests/ --durations=5 $(if $(NOCAPTURE),--capture=no) \
--cov=quantifiedme --cov-report xml --cov-report term-missing \
$(if $(SLOW),,-m "not slow") \
$(if $(PROFILE),--profile-svg)

typecheck:
poetry run mypy --ignore-missing-imports --check-untyped-defs $(SRCDIRS)
Expand Down
32 changes: 31 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,14 @@ ipykernel = "*"
pytest = "*"
pytest-cov = "*"
pytest-xdist = "*"
pytest-profiling = "*"
pytest_notebook = "*"
flake8 = "*"
mypy = "*"
black = "*"
ipympl = "*"
pyupgrade = "*"
ruff = "^0.1.4"
ruff = "*"

[tool.pytest.ini_options]
minversion = "6.0"
Expand Down

0 comments on commit 10ec565

Please sign in to comment.