Skip to content

Commit c263658

Browse files
committed
Separate code_checks and doc_checks
1 parent 23ce5cc commit c263658

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
@@ -11,7 +11,13 @@ env:
1111
PYTHON_VERSION: 3.14
1212

1313
jobs:
14+
doc_checks:
15+
name: Doc checks
16+
uses: ./.github/workflows/doc_checks.yaml
17+
secrets: inherit
18+
1419
build_and_deploy_docs:
20+
needs: [doc_checks]
1521
environment:
1622
name: github-pages
1723
permissions:
Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,6 @@ jobs:
4646
python-version-for-codecov: "3.14"
4747
operating-system-for-codecov: ubuntu-latest
4848

49-
docs_check:
50-
name: Docs check
51-
uses: apify/workflows/.github/workflows/python_docs_check.yaml@main
52-
secrets: inherit
53-
5449
integration_tests:
5550
name: Integration tests
5651
uses: apify/workflows/.github/workflows/python_integration_tests.yaml@main

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