Skip to content

Commit

Permalink
update triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
hinthornw committed Feb 14, 2024
1 parent 8926f97 commit 69194b0
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/integration_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,28 @@ on:
push:
branches:
- main
pull_request:
branches:
- main
types: [opened, synchronize, reopened, labeled, unlabeled]
workflow_dispatch:
inputs:
run-python-tests:
description: "Run Python integration tests"
default: "true"
required: false
run-js-tests:
description: "Run JS integration tests"
default: "true"
required: false

jobs:
python_integration_test:
name: Python Integration Test
if: >
github.event_name == 'push' ||
(github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'release')) ||
(github.event_name == 'workflow_dispatch' && ${{ github.event.inputs.run-python-tests == 'true' }})
runs-on: ubuntu-20.04
defaults:
run:
Expand All @@ -33,6 +50,10 @@ jobs:

js_integration_test:
name: JS Integration Test
if: >
github.event_name == 'push' ||
(github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'release')) ||
(github.event_name == 'workflow_dispatch' && ${{ github.event.inputs.run-js-tests == 'true' }})
runs-on: ubuntu-20.04
defaults:
run:
Expand Down

0 comments on commit 69194b0

Please sign in to comment.