Skip to content

Commit

Permalink
TST: simplify pytest runs
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros committed Dec 17, 2023
1 parent 865eea7 commit a6cae45
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/lint_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,5 @@ jobs:
- run: pip install mypy pytest safety
- run: pip install -r requirements.txt || true
- run: mypy --ignore-missing-imports . || true
- run: pytest . || true
- run: pytest --doctest-modules . || true
- run: shopt -s globstar
#- run: safety check
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ jobs:
- run: python -m pip freeze
- name: Test package
run: |
pytest --color=yes
pytest --color=yes --mpl \
--cov --cov-config=pyproject.toml --cov-report=term-missing
- name: Upload coverage
run: |
curl -s https://codecov.io/bash | bash
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ find = {namespaces = false}
universal = 0

[tool.pytest.ini_options]
addopts = "--mpl -v --cov --cov-config=pyproject.toml --cov-report=term-missing"
addopts = "-v"
filterwarnings = [
"error",
"ignore:FigureCanvasAgg is non-interactive:UserWarning",
Expand Down

0 comments on commit a6cae45

Please sign in to comment.