Skip to content

Commit 81ad91e

Browse files
authored
chore: Utilize Apify's wait-for-checks (#710)
1 parent ea0a3c0 commit 81ad91e

File tree

1 file changed

+9
-41
lines changed

1 file changed

+9
-41
lines changed

.github/workflows/pre_release.yaml

Lines changed: 9 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -32,50 +32,18 @@ jobs:
3232
release_type: prerelease
3333
existing_changelog_path: CHANGELOG.md
3434

35-
actions_lint_check:
36-
name: Actions lint check
37-
runs-on: ubuntu-latest
38-
steps:
39-
- name: Checkout repository
40-
uses: actions/checkout@v6
41-
- name: Run actionlint
42-
uses: rhysd/[email protected]
43-
44-
lint_check:
45-
name: Lint check
46-
uses: apify/workflows/.github/workflows/python_lint_check.yaml@main
47-
with:
48-
python-versions: '["3.10", "3.11", "3.12", "3.13", "3.14"]'
49-
50-
type_check:
51-
name: Type check
52-
uses: apify/workflows/.github/workflows/python_type_check.yaml@main
53-
with:
54-
python-versions: '["3.10", "3.11", "3.12", "3.13", "3.14"]'
55-
56-
unit_tests:
57-
name: Unit tests
58-
uses: apify/workflows/.github/workflows/python_unit_tests.yaml@main
59-
secrets: inherit
60-
with:
61-
python-versions: '["3.10", "3.11", "3.12", "3.13", "3.14"]'
62-
operating-systems: '["ubuntu-latest", "windows-latest"]'
63-
python-version-for-codecov: "3.14"
64-
operating-system-for-codecov: ubuntu-latest
65-
66-
integration_tests:
67-
name: Integration tests
68-
uses: apify/workflows/.github/workflows/python_integration_tests.yaml@main
69-
secrets: inherit
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+
uses: apify/workflows/.github/workflows/wait_for_checks.yaml@wait-for-checks-action
7040
with:
71-
python-versions: '["3.10", "3.14"]'
72-
operating-systems: '["ubuntu-latest"]'
73-
python-version-for-codecov: "3.14"
74-
operating-system-for-codecov: ubuntu-latest
41+
ref: ${{ github.ref }}
42+
check-regexp: "( check| tests)$"
7543

7644
update_changelog:
7745
name: Update changelog
78-
needs: [release_metadata, lint_check, type_check, unit_tests, integration_tests]
46+
needs: [release_metadata, wait_for_checks]
7947
uses: apify/workflows/.github/workflows/python_bump_and_update_changelog.yaml@main
8048
with:
8149
version_number: ${{ needs.release_metadata.outputs.version_number }}
@@ -85,7 +53,7 @@ jobs:
8553

8654
publish_to_pypi:
8755
name: Publish to PyPI
88-
needs: [release_metadata, update_changelog]
56+
needs: [release_metadata, wait_for_checks, update_changelog]
8957
runs-on: ubuntu-latest
9058
permissions:
9159
contents: write

0 commit comments

Comments
 (0)