Skip to content

Commit

Permalink
Merge pull request #69 from OZI-Project/feature/add-posargs
Browse files Browse the repository at this point in the history
Update action.yml
  • Loading branch information
rjdbcm authored May 26, 2024
2 parents 80b4f62 + 98980ca commit 64e790c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ inputs:
description: "Operating system to run on"
required: false
default: "ubuntu-latest"
args:
description: posargs for tox
required: false
default: ""
runs:
using: "composite"
steps:
Expand Down Expand Up @@ -80,13 +84,13 @@ runs:
- name: 'Run tests (Second Try)'
if: ${{ (steps.setup1.outcome == 'failure') && (inputs.parallel != 'true') }}
run: |
tox -r
tox -r -- ${{ inputs.args }}
shell: bash

- name: 'Run tests (Second Try)'
if: ${{ (steps.setup2.outcome == 'failure') && (inputs.parallel == 'true') }}
run: |
tox run-parallel -r --parallel-no-spinner
tox run-parallel -r --parallel-no-spinner -- ${{ inputs.args }}
shell: bash

- uses: sigstore/gh-action-sigstore-python@v2.1.2rc1
Expand Down

0 comments on commit 64e790c

Please sign in to comment.