File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,6 @@ inputs:
54
54
Publish to PyPi
55
55
Default is false
56
56
default : false
57
-
58
57
# Advanced Settings
59
58
args :
60
59
description : |
@@ -85,6 +84,12 @@ inputs:
85
84
testdir :
86
85
description : ' Test directory'
87
86
default : ' tests'
87
+ coverage :
88
+ description : ' Flags for code coverage'
89
+ default : true
90
+ flags :
91
+ description : ' Flags for code coverage'
92
+ default : ' unittests'
88
93
89
94
# ## Flags for reviewdog ###
90
95
level :
@@ -163,7 +168,12 @@ runs:
163
168
cd "${{ inputs.root }}/${{ inputs.workdir }}"
164
169
python -m flit install || python -m pip install .
165
170
python -m pytest '${{ inputs.args }}' ${{ inputs.testdir }}
171
+
166
172
shell : bash
173
+ - if : ${{ inputs.pytest == 'true' && inputs.coverage == 'true' }}
174
+ uses : codecov/codecov-action@v3
175
+ with :
176
+ flags : ${{ env.flags }}
167
177
168
178
- if : ${{ inputs.pypi_publish == 'true' }}
169
179
run : |
You can’t perform that action at this time.
0 commit comments