We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ff21fe commit fa2de9aCopy full SHA for fa2de9a
action.yml
@@ -54,7 +54,10 @@ inputs:
54
Publish to PyPi
55
Default is false
56
default: false
57
-
+ CODECOV_TOKEN:
58
+ description: |
59
+ Publish to codecov
60
+ default: ''
61
# Advanced Settings
62
args:
63
description: |
@@ -162,7 +165,14 @@ runs:
162
165
cd "${{ inputs.root }}/${{ inputs.workdir }}"
163
166
python -m flit install || python -m pip install .
164
167
python -m pytest '${{ inputs.args }}' ${{ inputs.testdir }}
168
+
169
+ flags=$(echo ${${{ inputs.args }}##* :-unittests})
170
shell: bash
171
+ - if: ${{ inputs.CODECOV_TOKEN != '' }}
172
+ uses: codecov/codecov-action@v3
173
+ with:
174
+ token: ${{ env.CODECOV_TOKEN }}
175
+ flags: ${{ env.flags }}
176
177
- if: ${{ inputs.pypi_publish == 'true' }}
178
run: |
0 commit comments