Skip to content

Commit 752e68e

Browse files
committed
ci: Update Python versions for code checks
1 parent 768b7b5 commit 752e68e

File tree

3 files changed

+29
-4
lines changed

3 files changed

+29
-4
lines changed

.github/workflows/pre_release.yaml

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

14+
env:
15+
PYTHON_VERSIONS: '["3.10", "3.11", "3.12", "3.13"]'
16+
1417
jobs:
1518
release_metadata:
1619
if: "!startsWith(github.event.head_commit.message, 'docs') && !startsWith(github.event.head_commit.message, 'ci') && startsWith(github.repository, 'apify/')"
@@ -31,14 +34,20 @@ jobs:
3134
lint_check:
3235
name: Lint check
3336
uses: apify/workflows/.github/workflows/python_lint_check.yaml@main
37+
with:
38+
python-version: ${{ env.PYTHON_VERSIONS }}
3439

3540
type_check:
3641
name: Type check
3742
uses: apify/workflows/.github/workflows/python_type_check.yaml@main
43+
with:
44+
python-version: ${{ env.PYTHON_VERSIONS }}
3845

3946
unit_tests:
4047
name: Unit tests
4148
uses: apify/workflows/.github/workflows/python_unit_tests.yaml@main
49+
with:
50+
python-version: ${{ env.PYTHON_VERSIONS }}
4251

4352
async_docstrings:
4453
name: Async dostrings check
@@ -48,6 +57,8 @@ jobs:
4857
name: Integration tests
4958
uses: apify/workflows/.github/workflows/python_integration_tests.yaml@main
5059
secrets: inherit
60+
with:
61+
python-version: ${{ env.PYTHON_VERSIONS }}
5162

5263
update_changelog:
5364
name: Update changelog

.github/workflows/release.yaml

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

24+
env:
25+
PYTHON_VERSIONS: '["3.10", "3.11", "3.12", "3.13"]'
26+
2427
jobs:
2528
release_metadata:
2629
name: Prepare release metadata
@@ -42,14 +45,20 @@ jobs:
4245
lint_check:
4346
name: Lint check
4447
uses: apify/workflows/.github/workflows/python_lint_check.yaml@main
48+
with:
49+
python-version: ${{ env.PYTHON_VERSIONS }}
4550

4651
type_check:
4752
name: Type check
4853
uses: apify/workflows/.github/workflows/python_type_check.yaml@main
54+
with:
55+
python-version: ${{ env.PYTHON_VERSIONS }}
4956

5057
unit_tests:
5158
name: Unit tests
5259
uses: apify/workflows/.github/workflows/python_unit_tests.yaml@main
60+
with:
61+
python-version: ${{ env.PYTHON_VERSIONS }}
5362

5463
async_docstrings:
5564
name: Async dostrings check
@@ -59,6 +68,8 @@ jobs:
5968
name: Integration tests
6069
uses: apify/workflows/.github/workflows/python_integration_tests.yaml@main
6170
secrets: inherit
71+
with:
72+
python-version: ${{ env.PYTHON_VERSIONS }}
6273

6374
update_changelog:
6475
name: Update changelog

.github/workflows/run_code_checks.yaml

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

9+
env:
10+
PYTHON_VERSIONS: '["3.10", "3.11", "3.12", "3.13"]'
11+
912
jobs:
1013
lint_check:
1114
name: Lint check
1215
uses: apify/workflows/.github/workflows/python_lint_check.yaml@main
1316
with:
14-
python-version: '["3.10", "3.11", "3.12", "3.13"]'
17+
python-version: ${{ env.PYTHON_VERSIONS }}
1518

1619
type_check:
1720
name: Type check
1821
uses: apify/workflows/.github/workflows/python_type_check.yaml@main
1922
with:
20-
python-version: '["3.10", "3.11", "3.12", "3.13"]'
23+
python-version: ${{ env.PYTHON_VERSIONS }}
2124

2225
unit_tests:
2326
name: Unit tests
2427
uses: apify/workflows/.github/workflows/python_unit_tests.yaml@main
2528
with:
26-
python-version: '["3.10", "3.11", "3.12", "3.13"]'
29+
python-version: ${{ env.PYTHON_VERSIONS }}
2730

2831
async_docstrings:
2932
name: Async dostrings check
@@ -38,5 +41,5 @@ jobs:
3841
needs: [lint_check, type_check, unit_tests]
3942
uses: apify/workflows/.github/workflows/python_integration_tests.yaml@main
4043
with:
41-
python-version: '["3.10", "3.11", "3.12", "3.13"]'
44+
python-version: ${{ env.PYTHON_VERSIONS }}
4245
secrets: inherit

0 commit comments

Comments
 (0)