Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate pytest JSON report #66

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
5 changes: 5 additions & 0 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ jobs:
- name: Coverage
uses: codecov/codecov-action@v2

- uses: actions/upload-artifact@v3
with:
name: Upload pytest reports as JSON
path: ./report-*.json

deploy:
# this will run when you have tagged a commit, starting with "v*"
# and requires that you have put your twine API key in your
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ testing =
pytest-qt # https://pytest-qt.readthedocs.io/en/latest/
pyqt5
tox
pytest-json-report

[options.package_data]
* = *.yaml
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ passenv =
PYVISTA_OFF_SCREEN
extras =
testing
commands = pytest -v --color=yes --cov=napari_metadata --cov-report=xml
commands = pytest -v --color=yes --cov=napari_metadata --cov-report=xml --json-report --json-report-file={toxinidir}/report-{envname}.json