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
8 changes: 8 additions & 0 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@ jobs:
- name: Test with tox
run: python -m tox

- name: Upload pytest test results
uses: actions/upload-artifact@v3
with:
name: pytest-results-${{ matrix.platform }} py${{ matrix.python-version }}
path: reports/
# Use always() to always run this step to publish test results when there are test failures
if: ${{ always() }}

- name: Coverage
uses: codecov/codecov-action@v2

Expand Down
8 changes: 7 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ python =

[testenv]
extras = testing
allowlist_externals =
cp
ls
tree
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 -v --color=yes --cov=napari_matplotlib --cov-report=xml
python -m pytest --mpl --mpl-generate-summary=html --mpl-results-path={toxinidir}/reports -v --color=yes --cov=napari_matplotlib --cov-report=xml