File tree Expand file tree Collapse file tree 3 files changed +5
-41
lines changed Expand file tree Collapse file tree 3 files changed +5
-41
lines changed Original file line number Diff line number Diff line change 1
- name : pytest
1
+ name : pytest and coverage report
2
2
3
- # Triggers the workflow on push for all branches
4
- on : [push]
3
+ # Triggers the workflow on push and PR for all branches
4
+ on : [push, pull_request ]
5
5
6
6
jobs :
7
7
pytest :
@@ -20,11 +20,12 @@ jobs:
20
20
python-version : 3.8
21
21
poetry-version : 1.2.2
22
22
23
- # Run pytest with coverage report and upload results to coveralls
23
+ # Run pytest with coverage report, saving to xml
24
24
- name : Run tests on python 3.8
25
25
run : |
26
26
poetry run pytest --cov --cov-report xml:cobertura.xml --full-trace --show-capture=no -sv -n auto tests/
27
27
28
+ # Take report and upload to coveralls
28
29
- name : Coveralls
29
30
uses : coverallsapp/github-action@v2
30
31
with :
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -667,7 +667,6 @@ def test_compute():
667
667
metadata ["user0" ]["email" ] = "email"
668
668
# NXinstrument
669
669
metadata ["instrument" ] = {}
670
- metadata ["instrument" ] = {}
671
670
# analyzer
672
671
metadata ["instrument" ]["analyzer" ] = {}
673
672
metadata ["instrument" ]["analyzer" ]["energy_resolution" ] = 110.0
You can’t perform that action at this time.
0 commit comments