Skip to content

Commit 231d77d

Browse files
authored
Merge pull request #131 from ruaridhg/report_artefact
Add reports from pytest-mpl, changed setup and tox
2 parents bbbe173 + 55d8506 commit 231d77d

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

Diff for: .github/workflows/test_and_deploy.yml

+8
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@ jobs:
4848
- name: Test with tox
4949
run: python -m tox
5050

51+
- name: Upload pytest test results
52+
uses: actions/upload-artifact@v3
53+
with:
54+
name: pytest-results-${{ matrix.platform }} py${{ matrix.python-version }}
55+
path: reports/
56+
# Use always() to always run this step to publish test results when there are test failures
57+
if: ${{ always() }}
58+
5159
- name: Coverage
5260
uses: codecov/codecov-action@v2
5361

Diff for: tox.ini

+7-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ python =
1111

1212
[testenv]
1313
extras = testing
14+
allowlist_externals =
15+
cp
16+
ls
17+
tree
1418
commands =
19+
cp -R {toxinidir}/src/napari_matplotlib/tests/baseline {envdir}/baseline
20+
ls {toxinidir}/src/napari_matplotlib/tests/baseline
1521
python -c 'from skimage import data; data.brain()'
16-
python -m pytest --mpl -v --color=yes --cov=napari_matplotlib --cov-report=xml
22+
python -m pytest --mpl --mpl-generate-summary=html --mpl-results-path={toxinidir}/reports -v --color=yes --cov=napari_matplotlib --cov-report=xml

0 commit comments

Comments
 (0)