chore(ci): Align GitHub workflows across Python projects (#1613) #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI (master) | |
| on: | |
| # Runs on every push to the master branch. | |
| push: | |
| branches: | |
| - master | |
| tags-ignore: | |
| - "**" # Ignore all tags to avoid duplicate executions triggered by tag pushes. | |
| jobs: | |
| doc_checks: | |
| name: Doc checks | |
| uses: ./.github/workflows/_check_docs.yaml | |
| secrets: inherit | |
| code_checks: | |
| name: Code checks | |
| uses: ./.github/workflows/_check_code.yaml | |
| tests: | |
| name: Tests | |
| uses: ./.github/workflows/_tests.yaml | |
| secrets: inherit | |
| pre_release: | |
| name: Pre-release | |
| needs: [code_checks, tests] | |
| uses: ./.github/workflows/_release_pre.yaml | |
| secrets: inherit | |
| release_docs: | |
| name: Doc release | |
| needs: [doc_checks, pre_release] | |
| uses: ./.github/workflows/_release_docs.yaml | |
| with: | |
| ref: ${{ needs.pre_release.outputs.changelog_commitish }} | |
| secrets: inherit |