Skip to content

Add reports from pytest-mpl, changed setup and tox #131

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

Merged
merged 7 commits into from
May 19, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Added generate summary html to tox and upload-artifact path updated
  • Loading branch information
ruaridhg committed May 19, 2023
commit 1335640e39cbd15bc6eb82cb4cdf814c77f51ec2
2 changes: 1 addition & 1 deletion .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: pytest-results-${{ matrix.python-version }}
path: reports/fig-comparison-${{ matrix.python-version }}.html
path: reports/
# Use always() to always run this step to publish test results when there are test failures
if: ${{ always() }}

Expand Down
3 changes: 1 addition & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,4 @@ commands =
cp -R {toxinidir}/src/napari_matplotlib/tests/baseline {envdir}/baseline
ls {toxinidir}/src/napari_matplotlib/tests/baseline
python -c 'from skimage import data; data.brain()'
python -m pytest --mpl --mpl-results-path=./reports -v --color=yes --cov=napari_matplotlib --cov-report=xml
tree {toxinidir}
python -m pytest --mpl --mpl-generate-summary=html --mpl-results-path={toxinidir}/reports -v --color=yes --cov=napari_matplotlib --cov-report=xml