Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed the build_and_publish workflow so it's not triggered and skipped on every PR #589

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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