11
11
# Or it can be triggered manually.
12
12
workflow_dispatch :
13
13
14
+ concurrency :
15
+ group : release
16
+ cancel-in-progress : false
17
+
14
18
jobs :
15
19
release_metadata :
16
20
if : " !startsWith(github.event.head_commit.message, 'docs') && !startsWith(github.event.head_commit.message, 'ci') && startsWith(github.repository, 'apify/')"
@@ -28,34 +32,22 @@ jobs:
28
32
release_type : prerelease
29
33
existing_changelog_path : CHANGELOG.md
30
34
31
- lint_check :
32
- name : Lint check
33
- uses : apify/workflows/.github/workflows/python_lint_check.yaml@main
34
- with :
35
- python-versions : ' ["3.10", "3.11", "3.12", "3.13"]'
36
-
37
- type_check :
38
- name : Type check
39
- uses : apify/workflows/.github/workflows/python_type_check.yaml@main
40
- with :
41
- python-versions : ' ["3.10", "3.11", "3.12", "3.13"]'
42
-
43
- unit_tests :
44
- name : Unit tests
45
- uses : apify/workflows/.github/workflows/python_unit_tests.yaml@main
46
- with :
47
- python-versions : ' ["3.10", "3.11", "3.12", "3.13"]'
48
-
49
- integration_tests :
50
- name : Integration tests
51
- uses : apify/workflows/.github/workflows/python_integration_tests.yaml@main
52
- secrets : inherit
53
- with :
54
- python-versions : ' ["3.10", "3.13"]'
35
+ # If github.ref points to a [ci skip] commit, this workflow won't run.
36
+ # Otherwise, these checks will be launched from the `run_code_checks` workflow.
37
+ wait_for_checks :
38
+ name : Wait for code checks to pass
39
+ runs-on : ubuntu-latest
40
+ steps :
41
+
42
+ with :
43
+ ref : ${{ github.ref }}
44
+ repo-token : ${{ secrets.GITHUB_TOKEN }}
45
+ check-regexp : " ( check| tests)$"
46
+ wait-interval : 5
55
47
56
48
update_changelog :
57
49
name : Update changelog
58
- needs : [release_metadata, lint_check, type_check, unit_tests, integration_tests ]
50
+ needs : [release_metadata, wait_for_checks ]
59
51
uses : apify/workflows/.github/workflows/python_bump_and_update_changelog.yaml@main
60
52
with :
61
53
version_number : ${{ needs.release_metadata.outputs.version_number }}
65
57
66
58
publish_to_pypi :
67
59
name : Publish to PyPI
68
- needs : [release_metadata, update_changelog]
60
+ needs : [release_metadata, wait_for_checks, update_changelog]
69
61
runs-on : ubuntu-latest
70
62
permissions :
71
63
contents : write
0 commit comments