Skip to content

Commit

Permalink
Merge pull request #589 from lnccbrown/588-update-the-release-workflo…
Browse files Browse the repository at this point in the history
…w-so-that-build-and-publish-is-not-triggered-and-skipped-on-pr

Fixed the `build_and_publish` workflow so it's not triggered and skipped on every PR
  • Loading branch information
digicosmos86 authored Sep 20, 2024
2 parents f707407 + c63be6a commit 4bd6c77
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/build_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,22 @@ on:
release:
types:
- published
workflow_run:
workflows:
- "Linting and type checking"
- "Run fast tests"
- "Run slow tests"
types:
- completed

jobs:
lint_and_typecheck:
name: Lint and type-check
uses: ./.github/workflows/linting_and_type_checking.yml

run_fast_tests:
name: Run fast tests
uses: ./.github/workflows/run_fast_tests.yml

run_slow_tests:
name: Run slow tests
uses: ./.github/workflows/run_slow_tests.yml

publish:
name: Build wheel and publish to test-PyPI, and then PyPI, and publish docs
if: github.event_name == 'release' && github.event.action == 'published'
runs-on: ubuntu-latest

strategy:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/linting_and_type_checking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Linting and type checking

on:
pull_request:
workflow_call:

jobs:
run_tests:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/run_fast_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Run fast tests

on:
pull_request:
workflow_call:

jobs:
run_tests:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/run_slow_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Run slow tests

on:
pull_request:
workflow_call:

jobs:
run_tests:
Expand Down

0 comments on commit 4bd6c77

Please sign in to comment.