Skip to content

Commit 033e868

Browse files
committed
Separate code_checks and doc_checks
1 parent 19cce8f commit 033e868

File tree

4 files changed

+28
-6
lines changed

4 files changed

+28
-6
lines changed

.github/workflows/build_and_deploy_docs.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,13 @@ env:
1313
PYTHON_VERSION: 3.14
1414

1515
jobs:
16+
doc_checks:
17+
name: Doc checks
18+
uses: ./.github/workflows/doc_checks.yaml
19+
secrets: inherit
20+
1621
build_and_deploy_docs:
22+
needs: [doc_checks]
1723
environment:
1824
name: github-pages
1925
permissions:
Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,3 @@ jobs:
4747
operating-systems: '["ubuntu-latest", "windows-latest", "macos-latest"]'
4848
python-version-for-codecov: "3.14"
4949
operating-system-for-codecov: ubuntu-latest
50-
51-
docs_check:
52-
name: Docs check
53-
uses: apify/workflows/.github/workflows/python_docs_check.yaml@main
54-
secrets: inherit

.github/workflows/doc_checks.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Run doc checks
2+
3+
on:
4+
# Trigger code checks on opening a new pull request.
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:
8+
9+
# Trigger for pushing to the master branch is handled by the build-and-deploy-docs workflow.
10+
11+
# It should also be possible to trigger checks manually
12+
workflow_dispatch:
13+
14+
# Allow this workflow to be invoked as a reusable workflow from other workflows
15+
workflow_call:
16+
17+
jobs:
18+
doc_checks:
19+
name: Run doc checks
20+
uses: apify/workflows/.github/workflows/python_docs_check.yaml@main
21+
secrets: inherit

.github/workflows/pre_release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434

3535
run_code_checks:
3636
name: Run code checks
37-
uses: ./.github/workflows/run_code_checks.yaml
37+
uses: ./.github/workflows/code_checks.yaml
3838

3939
update_changelog:
4040
name: Update changelog

0 commit comments

Comments
 (0)