ci: Improve release workflows #1277
This file contains 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: Run code checks | |
on: | |
# Trigger code checks on opening a new pull request. | |
# Secrets are only made available to the integration tests job, with a manual approval | |
# step required for PRs from forks. This prevents their potential exposure. | |
pull_request: | |
# Pushing to the master branch triggers code checks | |
push: | |
branches: | |
- master | |
tags-ignore: | |
- "**" # Ignore all tags to prevent duplicate checks when tags are pushed. | |
# It should also be possible to trigger checks manually | |
workflow_dispatch: | |
jobs: | |
lint_check: | |
name: Check - Lint | |
uses: apify/workflows/.github/workflows/python_lint_check.yaml@main | |
type_check: | |
name: Check - Types | |
uses: apify/workflows/.github/workflows/python_type_check.yaml@main | |
unit_tests: | |
name: Check - Unit tests | |
uses: apify/workflows/.github/workflows/python_unit_tests.yaml@main | |
docs_check: | |
name: Try to run docs build | |
uses: apify/workflows/.github/workflows/python_docs_check.yaml@main |