Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion action.yml
Original file line numberDiff line numberDiff line change
Expand Up@@ -54,7 +54,6 @@ inputs:
Publish to PyPi
Default is false
default: false

# Advanced Settings
args:
description: |
Expand DownExpand 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 DownExpand Up@@ -162,7 +167,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