Skip to content

Commit

Permalink
ci(test-reuse): make tests optional
Browse files Browse the repository at this point in the history
  • Loading branch information
tigattack committed Oct 23, 2024
1 parent 8723013 commit 0ad56f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ on:
required: true
type: string
tests_path:
description: 'The path to the directory containing pytest tests'
required: true
description: 'The path to the directory containing pytest tests. Tests will be skipped if this is empty.'
type: string

jobs:
Expand Down Expand Up @@ -67,6 +66,7 @@ jobs:
cache: "poetry"

- name: Test with pytest
if: ${{ inputs.tests_path != '' }}
run: |
poetry install --with dev
poetry run pytest ${{ inputs.tests_path }}
Expand Down

0 comments on commit 0ad56f5

Please sign in to comment.