Skip to content

Commit

Permalink
Split main branch and PR workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbowly committed Jul 21, 2024
1 parent 0a8cb3b commit d920978
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/test.yml → .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
# Regular QA workflow (pull requests, main branch)
# Regular QA workflow for main branch

name: Test

on:
push:
branches:
- main
pull_request_target:
branches:
- main

jobs:
code-quality:
Expand All @@ -18,10 +15,10 @@ jobs:
needs: [code-quality]
notebook-examples:
uses: ./.github/workflows/notebook-examples.yml
needs: [unit-tests]
needs: [code-quality]
examples-artifact:
uses: ./.github/workflows/examples-artifact.yml
needs: [unit-tests]
needs: [code-quality]
trigger-rtd-build:
runs-on: ubuntu-latest
needs: [examples-artifact]
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# QA workflow for pull requests (no RTD trigger)

name: Pull request

on:
pull_request_target:
branches:
- main

jobs:
code-quality:
uses: ./.github/workflows/code-quality.yml
unit-tests:
uses: ./.github/workflows/unit-tests.yml
needs: [code-quality]
notebook-examples:
uses: ./.github/workflows/notebook-examples.yml
needs: [unit-tests]
examples-artifact:
uses: ./.github/workflows/examples-artifact.yml
needs: [notebook-examples]

0 comments on commit d920978

Please sign in to comment.