Skip to content

Commit 1ad3a79

Browse files
committed
Better organization
1 parent 033e868 commit 1ad3a79

File tree

11 files changed

+103
-62
lines changed

11 files changed

+103
-62
lines changed

.github/workflows/check_pr_title.yaml

Lines changed: 0 additions & 14 deletions
This file was deleted.

.github/workflows/code_checks.yaml

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
11
name: Run code checks
22

33
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 pre-release workflow.
10-
11-
# It should also be possible to trigger checks manually
4+
# Runs when manually triggered from the GitHub UI.
125
workflow_dispatch:
136

14-
# Allow this workflow to be invoked as a reusable workflow from other workflows
7+
# Runs when invoked by another workflow.
158
workflow_call:
169

1710
jobs:
@@ -35,15 +28,3 @@ jobs:
3528
uses: apify/workflows/.github/workflows/python_type_check.yaml@main
3629
with:
3730
python-versions: '["3.10", "3.11", "3.12", "3.13", "3.14"]'
38-
39-
unit_tests:
40-
name: Unit tests
41-
uses: apify/workflows/.github/workflows/python_unit_tests.yaml@main
42-
secrets:
43-
httpbin_url: ${{ secrets.APIFY_HTTPBIN_TOKEN && format('https://httpbin.apify.actor?token={0}', secrets.APIFY_HTTPBIN_TOKEN) || 'https://httpbin.org' }}
44-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
45-
with:
46-
python-versions: '["3.10", "3.11", "3.12", "3.13", "3.14"]'
47-
operating-systems: '["ubuntu-latest", "windows-latest", "macos-latest"]'
48-
python-version-for-codecov: "3.14"
49-
operating-system-for-codecov: ubuntu-latest

.github/workflows/doc_checks.yaml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,14 @@
1-
name: Run doc checks
1+
name: Doc checks
22

33
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
4+
# Runs when manually triggered from the GitHub UI.
125
workflow_dispatch:
136

14-
# Allow this workflow to be invoked as a reusable workflow from other workflows
7+
# Runs when invoked by another workflow.
158
workflow_call:
169

1710
jobs:
1811
doc_checks:
19-
name: Run doc checks
12+
name: Doc checks
2013
uses: apify/workflows/.github/workflows/python_docs_check.yaml@main
2114
secrets: inherit

.github/workflows/build_and_deploy_docs.yaml renamed to .github/workflows/docs.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
name: Build and deploy docs
1+
name: Docs
22

33
on:
4+
# Runs when manually triggered from the GitHub UI.
45
workflow_dispatch:
6+
7+
# Runs when invoked by another workflow.
58
workflow_call:
69
inputs:
710
ref:
@@ -13,13 +16,8 @@ env:
1316
PYTHON_VERSION: 3.14
1417

1518
jobs:
16-
doc_checks:
17-
name: Doc checks
18-
uses: ./.github/workflows/doc_checks.yaml
19-
secrets: inherit
20-
2119
build_and_deploy_docs:
22-
needs: [doc_checks]
20+
name: Build and deploy docs
2321
environment:
2422
name: github-pages
2523
permissions:
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Update new issue
22

33
on:
4+
# Runs when a new issue is opened.
45
issues:
56
types:
67
- opened

.github/workflows/on_master.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CI (master)
2+
3+
on:
4+
# Runs on every push to the master branch.
5+
push:
6+
branches:
7+
- master
8+
tags-ignore:
9+
- "**" # Ignore all tags to avoid duplicate executions triggered by tag pushes.
10+
11+
jobs:
12+
doc_checks:
13+
name: Doc checks
14+
uses: ./.github/workflows/doc_checks.yaml
15+
secrets: inherit
16+
17+
code_checks:
18+
name: Code checks
19+
uses: ./.github/workflows/code_checks.yaml
20+
21+
tests:
22+
name: Tests
23+
uses: ./.github/workflows/tests.yaml
24+
secrets: inherit
25+
26+
build_and_deploy_docs:
27+
name: Build and deploy docs
28+
needs: [doc_checks]
29+
uses: ./.github/workflows/build_and_deploy_docs.yaml
30+
secrets: inherit
31+
32+
pre_release:
33+
name: Pre-release
34+
needs: [code_checks, tests]
35+
uses: ./.github/workflows/pre_release.yaml
36+
secrets: inherit
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: CI (PR)
2+
3+
on:
4+
# Runs whenever a pull request is opened or updated.
5+
pull_request:
6+
7+
jobs:
8+
check_pr_title:
9+
name: Check PR title
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: amannn/[email protected]
13+
14+
doc_checks:
15+
name: Doc checks
16+
uses: ./.github/workflows/doc_checks.yaml
17+
secrets: inherit
18+
19+
code_checks:
20+
name: Code checks
21+
uses: ./.github/workflows/code_checks.yaml
22+
23+
tests:
24+
name: Tests
25+
uses: ./.github/workflows/tests.yaml
26+
secrets: inherit

.github/workflows/pre_release.yaml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
name: Create a pre-release
22

33
on:
4-
# Trigger a beta version release (pre-release) on push to the master branch.
5-
push:
6-
branches:
7-
- master
8-
tags-ignore:
9-
- "**" # Ignore all tags to prevent duplicate builds when tags are pushed.
10-
11-
# Or it can be triggered manually.
4+
# Runs when manually triggered from the GitHub UI.
125
workflow_dispatch:
136

7+
# Runs when invoked by another workflow.
8+
workflow_call:
9+
1410
concurrency:
1511
group: release
1612
cancel-in-progress: false

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Create a release
22

33
on:
4-
# Trigger a stable version release via GitHub's UI, with the ability to specify the type of release.
4+
# Runs when manually triggered from the GitHub UI, with options to specify the type of release.
55
workflow_dispatch:
66
inputs:
77
release_type:

.github/workflows/templates_e2e_tests.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
name: Templates end-to-end tests
22

33
on:
4+
# Runs when manually triggered from the GitHub UI.
45
workflow_dispatch:
6+
7+
# Runs on a daily schedule at 06:00 UTC.
58
schedule:
69
- cron: '0 6 * * *'
710

0 commit comments

Comments
 (0)