Skip to content

Commit cf08dd6

Browse files
committed
Separate code_checks and doc_checks
1 parent e679d54 commit cf08dd6

File tree

4 files changed

+26
-5
lines changed

4 files changed

+26
-5
lines changed

.github/workflows/build_and_deploy_docs.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ env:
1111
PYTHON_VERSION: 3.14
1212

1313
jobs:
14+
doc_checks:
15+
name: Doc checks
16+
uses: ./.github/workflows/doc_checks.yaml
17+
1418
build_and_deploy_docs:
19+
needs: [doc_checks]
1520
environment:
1621
name: github-pages
1722
permissions:
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@ jobs:
5050
name: Async dostrings check
5151
uses: ./.github/workflows/_async_docstrings_check.yaml
5252

53-
docs_check:
54-
name: Docs check
55-
uses: apify/workflows/.github/workflows/python_docs_check.yaml@main
56-
5753
integration_tests:
5854
name: Integration tests
5955
needs: [lint_check, type_check, unit_tests]

.github/workflows/doc_checks.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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

.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)