File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -43,15 +43,21 @@ jobs:
43
43
fi
44
44
45
45
- shell : bash -el {0}
46
- name : Test with pytest and collect coverage
46
+ name : Test with pytest and Output a JUnit XML
47
47
run : |
48
- pytest --cov=./ --cov-report= xml
48
+ pytest --cov=./ --junitxml=junit. xml -o junit_family=legacy
49
49
50
50
- name : Upload coverage to Codecov
51
51
uses : codecov/codecov-action@v3
52
52
env :
53
53
CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
54
54
55
+ - name : Upload test results to Codecov
56
+ if : ${{ !cancelled() }}
57
+ uses : codecov/test-results-action@v1
58
+ with :
59
+ token : ${{ secrets.CODECOV_TOKEN }}
60
+
55
61
- name : Check secret presence
56
62
id : check_secret
57
63
run : |
60
66
echo "is_set=true" >> $GITHUB_OUTPUT
61
67
fi
62
68
69
+ - shell : bash -el {0}
70
+ name : Test with pytest and collect coverage
71
+ run : |
72
+ pytest --cov=./ --cov-report=xml
73
+
63
74
- name : Upload coverage to Codacy
64
75
if : steps.check_secret.outputs.is_set == 'true'
65
76
You can’t perform that action at this time.
0 commit comments