Skip to content

Commit b5fa13c

Browse files
committed
ci: Update Python versions for code checks
1 parent 9eab1c9 commit b5fa13c

File tree

3 files changed

+32
-4
lines changed

3 files changed

+32
-4
lines changed

.github/workflows/pre_release.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
1111
# Or it can be triggered manually.
1212
workflow_dispatch:
1313

14+
env:
15+
PYTHON_VERSIONS: '["3.9", "3.10", "3.11", "3.12", "3.13"]'
16+
PYTHON_VERSIONS_INTEGRATION_TESTS: '["3.9", "3.13"]'
17+
1418
jobs:
1519
release_metadata:
1620
if: "!startsWith(github.event.head_commit.message, 'docs') && !startsWith(github.event.head_commit.message, 'ci') && startsWith(github.repository, 'apify/')"
@@ -31,19 +35,27 @@ jobs:
3135
lint_check:
3236
name: Lint check
3337
uses: apify/workflows/.github/workflows/python_lint_check.yaml@main
38+
with:
39+
python-version: ${{ env.PYTHON_VERSIONS }}
3440

3541
type_check:
3642
name: Type check
3743
uses: apify/workflows/.github/workflows/python_type_check.yaml@main
44+
with:
45+
python-version: ${{ env.PYTHON_VERSIONS }}
3846

3947
unit_tests:
4048
name: Unit tests
4149
uses: apify/workflows/.github/workflows/python_unit_tests.yaml@main
50+
with:
51+
python-version: ${{ env.PYTHON_VERSIONS }}
4252

4353
integration_tests:
4454
name: Integration tests
4555
uses: apify/workflows/.github/workflows/python_integration_tests.yaml@main
4656
secrets: inherit
57+
with:
58+
python-version: ${{ env.PYTHON_VERSIONS_INTEGRATION_TESTS }}
4759

4860
update_changelog:
4961
name: Update changelog

.github/workflows/release.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ on:
2121
type: string
2222
default: ""
2323

24+
env:
25+
PYTHON_VERSIONS: '["3.9", "3.10", "3.11", "3.12", "3.13"]'
26+
PYTHON_VERSIONS_INTEGRATION_TESTS: '["3.9", "3.13"]'
27+
2428
jobs:
2529
release_metadata:
2630
name: Prepare release metadata
@@ -42,19 +46,27 @@ jobs:
4246
lint_check:
4347
name: Lint check
4448
uses: apify/workflows/.github/workflows/python_lint_check.yaml@main
49+
with:
50+
python-version: ${{ env.PYTHON_VERSIONS }}
4551

4652
type_check:
4753
name: Type check
4854
uses: apify/workflows/.github/workflows/python_type_check.yaml@main
55+
with:
56+
python-version: ${{ env.PYTHON_VERSIONS }}
4957

5058
unit_tests:
5159
name: Unit tests
5260
uses: apify/workflows/.github/workflows/python_unit_tests.yaml@main
61+
with:
62+
python-version: ${{ env.PYTHON_VERSIONS }}
5363

5464
integration_tests:
5565
name: Integration tests
5666
uses: apify/workflows/.github/workflows/python_integration_tests.yaml@main
5767
secrets: inherit
68+
with:
69+
python-version: ${{ env.PYTHON_VERSIONS_INTEGRATION_TESTS }}
5870

5971
update_changelog:
6072
name: Update changelog

.github/workflows/run_code_checks.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,28 @@ on:
66
# step required for PRs from forks. This prevents their potential exposure.
77
pull_request:
88

9+
env:
10+
PYTHON_VERSIONS: '["3.9", "3.10", "3.11", "3.12", "3.13"]'
11+
PYTHON_VERSIONS_INTEGRATION_TESTS: '["3.9", "3.13"]'
12+
913
jobs:
1014
lint_check:
1115
name: Lint check
1216
uses: apify/workflows/.github/workflows/python_lint_check.yaml@main
1317
with:
14-
python-version: '["3.9", "3.10", "3.11", "3.12", "3.13"]'
18+
python-version: ${{ env.PYTHON_VERSIONS }}
1519

1620
type_check:
1721
name: Type check
1822
uses: apify/workflows/.github/workflows/python_type_check.yaml@main
1923
with:
20-
python-version: '["3.9", "3.10", "3.11", "3.12", "3.13"]'
24+
python-version: ${{ env.PYTHON_VERSIONS }}
2125

2226
unit_tests:
2327
name: Unit tests
2428
uses: apify/workflows/.github/workflows/python_unit_tests.yaml@main
2529
with:
26-
python-version: '["3.9", "3.10", "3.11", "3.12", "3.13"]'
30+
python-version: ${{ env.PYTHON_VERSIONS }}
2731

2832
docs_check:
2933
name: Docs check
@@ -35,4 +39,4 @@ jobs:
3539
uses: apify/workflows/.github/workflows/python_integration_tests.yaml@main
3640
secrets: inherit
3741
with:
38-
python-version: '["3.9", "3.13"]'
42+
python-version: ${{ env.PYTHON_VERSIONS_INTEGRATION_TESTS }}

0 commit comments

Comments
 (0)