Skip to content

Commit

Permalink
Skip tests if prerelease branch
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubno committed Sep 30, 2024
1 parent 8db9571 commit 8940f3b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,15 @@ jobs:
python-tests:
needs: [ changes ]
name: Tests Python package
if: needs.changes.outputs.python == 'true'
# If the PR does not have the label 'python-rc', the code is already tested in the prerelease workflow
if: needs.changes.outputs.python == 'true' && !contains( github.event.pull_request.labels.*.name, 'python-rc')
uses: ./.github/workflows/python_tests.yml
secrets: inherit

js-tests:
needs: [ changes ]
name: Tests JS package
if: needs.changes.outputs.js == 'true'
# If the PR does not have the label 'js-rc', the code is already tested in the prerelease workflow
if: needs.changes.outputs.js == 'true' && !contains( github.event.pull_request.labels.*.name, 'js-rc')
uses: ./.github/workflows/js_tests.yml
secrets: inherit

0 comments on commit 8940f3b

Please sign in to comment.