Skip to content

Commit

Permalink
feat(pdm): support some extra parameters to the pdm cover command (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
noirbizarre committed Mar 7, 2024
1 parent 65dc973 commit 1cec2f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions pdm/test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
| `pypi-token` | A Token to Ledger private PyPI with read permissions | `""` | `true` |
| `github-token` | A Github token with proper permissions | `${{ github.token }}` | `false` |
| `init` | Clone & sync | `true` | `false` |
| `parameters` | Some extra paramaters to the `pdm cover` command | `""` | `false` |


## Outputs
Expand Down
5 changes: 4 additions & 1 deletion pdm/test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ inputs:
init:
description: Clone & sync
default: true
parameters:
description: Some extra parameters to pass to `pdm cover`
default: ""

runs:
using: composite
Expand All @@ -29,7 +32,7 @@ runs:
pypi-token: ${{ inputs.pypi-token }}

- name: Run Tests
run: pdm cover -v --force-sugar --color=yes
run: pdm cover -v --force-sugar --color=yes ${{ inputs.parameters }}
env:
FORCE_COLOR: true
shell: bash
Expand Down

0 comments on commit 1cec2f2

Please sign in to comment.