@@ -2,46 +2,43 @@ name: Run code checks
22
33on :
44 # Trigger code checks on opening a new pull request.
5- pull_request_target :
6-
7- # Do not trigger code checks on push to the master branch, as they will be triggered
8- # by the release workflow.
9-
10- # Trigger code checks on workflow call (e.g. from run release workflow).
11- workflow_call :
5+ # Secrets are only made available to the integration tests job, with a manual approval
6+ # step required for PRs from forks. This prevents their potential exposure.
7+ pull_request :
128
139jobs :
1410 lint_check :
1511 name : Lint check
16- uses : apify/workflows/.github/workflows/python/lint_check .yaml
12+ uses : apify/workflows/.github/workflows/python_lint_check .yaml@main
1713
1814 type_check :
1915 name : Type check
20- uses : apify/workflows/.github/workflows/python/type_check .yaml
16+ uses : apify/workflows/.github/workflows/python_type_check .yaml@main
2117
2218 unit_tests :
2319 name : Unit tests
24- uses : apify/workflows/.github/workflows/python/unit_tests .yaml
20+ uses : apify/workflows/.github/workflows/python_unit_tests .yaml@main
2521
2622 async_docstrings :
2723 name : Async dostrings check
2824 uses : ./.github/workflows/_async_docstrings_check.yaml
2925
30- # TODO: remove this once https://github.com/apify/apify-client -python/issues/273 is resolved
26+ # TODO: remove this once https://github.com/apify/apify-sdk -python/issues/241 is resolved
3127 changelog_entry_check :
3228 name : Changelog entry check
3329 uses : ./.github/workflows/_changelog_entry_check.yaml
3430
35- # TODO: remove this once https://github.com/apify/apify-client -python/issues/273 is resolved
36- check_version_conflict :
37- name : Check version conflict
31+ # TODO: remove this once https://github.com/apify/apify-sdk -python/issues/241 is resolved
32+ version_conflict_check :
33+ name : Version conflict check
3834 uses : ./.github/workflows/_version_conflict_check.yaml
3935
4036 docs_check :
4137 name : Docs check
42- uses : apify/workflows/.github/workflows/python/docs_check .yaml
38+ uses : apify/workflows/.github/workflows/python_docs_check .yaml@main
4339
4440 integration_tests :
4541 name : Integration tests
46- uses : apify/workflows/.github/workflows/python/integration_tests.yaml
42+ needs : [lint_check, type_check, unit_tests]
43+ uses : apify/workflows/.github/workflows/python_integration_tests.yaml@main
4744 secrets : inherit
0 commit comments