Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 231d77d

Browse filesBrowse 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
Copy full SHA for 231d77d

File tree

2 files changed

+15
-1
lines changed
Filter options

2 files changed

+15
-1
lines changed

‎.github/workflows/test_and_deploy.yml

Copy file name to clipboardExpand all lines: .github/workflows/test_and_deploy.yml
+8Lines changed: 8 additions & 0 deletions
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

‎tox.ini

Copy file name to clipboardExpand all lines: tox.ini
+7-1Lines changed: 7 additions & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.