This repository was archived by the owner on Mar 24, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -54,7 +54,6 @@ inputs:
5454 Publish to PyPi
5555 Default is false
5656 default : false
57-
5857 # Advanced Settings
5958 args :
6059 description : |
@@ -85,6 +84,12 @@ inputs:
8584 testdir :
8685 description : ' Test directory'
8786 default : ' tests'
87+ coverage :
88+ description : ' Flags for code coverage'
89+ default : true
90+ flags :
91+ description : ' Flags for code coverage'
92+ default : ' unittests'
8893
8994 # ## Flags for reviewdog ###
9095 level :
@@ -163,7 +168,12 @@ runs:
163168 cd "${{ inputs.root }}/${{ inputs.workdir }}"
164169 python -m flit install || python -m pip install .
165170 python -m pytest '${{ inputs.args }}' ${{ inputs.testdir }}
171+
166172 shell : bash
173+ - if : ${{ inputs.pytest == 'true' && inputs.coverage == 'true' }}
174+ uses : codecov/codecov-action@v3
175+ with :
176+ flags : ${{ env.flags }}
167177
168178 - if : ${{ inputs.pypi_publish == 'true' }}
169179 run : |
You can’t perform that action at this time.
0 commit comments