Skip to content
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