Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

Commit ffacc7d

Browse files
authored
Update action.yml
1 parent ca073c0 commit ffacc7d

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

action.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff 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 }}

0 commit comments

Comments
 (0)