Skip to content

Commit

Permalink
Merge pull request #9 from microsoft/dciborow-patch-2
Browse files Browse the repository at this point in the history
Update action.yml
  • Loading branch information
dciborow authored Apr 30, 2023
2 parents 036c2f6 + ffacc7d commit d705237
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ inputs:
Publish to PyPi
Default is false
default: false

# Advanced Settings
args:
description: |
Expand Down Expand Up @@ -85,6 +84,12 @@ inputs:
testdir:
description: 'Test directory'
default: 'tests'
coverage:
description: 'Flags for code coverage'
default: true
flags:
description: 'Flags for code coverage'
default: 'unittests'

### Flags for reviewdog ###
level:
Expand Down Expand Up @@ -163,7 +168,12 @@ runs:
cd "${{ inputs.root }}/${{ inputs.workdir }}"
python -m flit install || python -m pip install .
python -m pytest '${{ inputs.args }}' ${{ inputs.testdir }}
shell: bash
- if: ${{ inputs.pytest == 'true' && inputs.coverage == 'true' }}
uses: codecov/codecov-action@v3
with:
flags: ${{ env.flags }}

- if: ${{ inputs.pypi_publish == 'true' }}
run: |
Expand Down

0 comments on commit d705237

Please sign in to comment.