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 @@ -84,6 +84,12 @@ inputs:
8484 testdir :
8585 description : ' Test directory'
8686 default : ' tests'
87+ coverage :
88+ description : ' Flags for code coverage'
89+ default : true
90+ flags :
91+ description : ' Flags for code coverage'
92+ default : ' unittests'
8793
8894 # ## Flags for reviewdog ###
8995 level :
@@ -161,10 +167,9 @@ runs:
161167 cd "${{ inputs.root }}/${{ inputs.workdir }}"
162168 python -m flit install || python -m pip install .
163169 python -m pytest '${{ inputs.args }}' ${{ inputs.testdir }}
164-
165- flags=$(echo ${${{ inputs.args }}##* :-unittests})
170+
166171 shell : bash
167- - if : ${{ inputs.pytest == 'true' }}
172+ - if : ${{ inputs.pytest == 'true' && inputs.coverage == 'true' }}
168173 uses : codecov/codecov-action@v3
169174 with :
170175 flags : ${{ env.flags }}
You can’t perform that action at this time.
0 commit comments