Skip to content

Commit d705237

Browse files
authored
Merge pull request microsoft#9 from microsoft/dciborow-patch-2
Update action.yml
2 parents 036c2f6 + ffacc7d commit d705237

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

action.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff 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: |

0 commit comments

Comments
 (0)