@@ -2,46 +2,43 @@ name: Run code checks
2
2
3
3
on :
4
4
# 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 :
12
8
13
9
jobs :
14
10
lint_check :
15
11
name : Lint check
16
- uses : apify/workflows/.github/workflows/python/lint_check .yaml
12
+ uses : apify/workflows/.github/workflows/python_lint_check .yaml@main
17
13
18
14
type_check :
19
15
name : Type check
20
- uses : apify/workflows/.github/workflows/python/type_check .yaml
16
+ uses : apify/workflows/.github/workflows/python_type_check .yaml@main
21
17
22
18
unit_tests :
23
19
name : Unit tests
24
- uses : apify/workflows/.github/workflows/python/unit_tests .yaml
20
+ uses : apify/workflows/.github/workflows/python_unit_tests .yaml@main
25
21
26
22
async_docstrings :
27
23
name : Async dostrings check
28
24
uses : ./.github/workflows/_async_docstrings_check.yaml
29
25
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
31
27
changelog_entry_check :
32
28
name : Changelog entry check
33
29
uses : ./.github/workflows/_changelog_entry_check.yaml
34
30
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
38
34
uses : ./.github/workflows/_version_conflict_check.yaml
39
35
40
36
docs_check :
41
37
name : Docs check
42
- uses : apify/workflows/.github/workflows/python/docs_check .yaml
38
+ uses : apify/workflows/.github/workflows/python_docs_check .yaml@main
43
39
44
40
integration_tests :
45
41
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
47
44
secrets : inherit
0 commit comments