Skip to content

Commit 6cbb523

Browse files
authored
chore: update Python workflows to use Python 3.13 (#149)
1 parent 304e617 commit 6cbb523

File tree

8 files changed

+21
-15
lines changed

8 files changed

+21
-15
lines changed

.github/workflows/python_bump_and_update_changelog.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
python_version:
77
required: false
88
type: string
9-
default: 3.12
9+
default: "3.13" # The newest Python version.
1010
version_number:
1111
description: Version number of the new release (no leading "v")
1212
required: true

.github/workflows/python_docs_check.yaml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,20 @@ name: Docs check
22

33
on:
44
workflow_call:
5+
inputs:
6+
python_version:
7+
required: false
8+
type: string
9+
default: "3.13" # The newest Python version.
10+
node_version:
11+
required: false
12+
type: string
13+
default: "20"
514

615
jobs:
716
docs_check:
817
name: Docs check
918
runs-on: ubuntu-latest
10-
env:
11-
NODE_VERSION: 20
12-
PYTHON_VERSION: 3.12
1319

1420
steps:
1521
- name: Checkout source code
@@ -18,7 +24,7 @@ jobs:
1824
- name: Set up Node
1925
uses: actions/setup-node@v4
2026
with:
21-
node-version: ${{ env.NODE_VERSION }}
27+
node-version: ${{ inputs.node_version }}
2228

2329
- name: Enable corepack
2430
run: |
@@ -28,11 +34,11 @@ jobs:
2834
- name: Set up Python
2935
uses: actions/setup-python@v5
3036
with:
31-
python-version: ${{ env.PYTHON_VERSION }}
37+
python-version: ${{ inputs.python_version }}
3238

3339
- name: Install Python dependencies
3440
run: |
35-
pipx install --python ${{ env.PYTHON_VERSION }} poetry
41+
pipx install --python ${{ inputs.python_version }} poetry
3642
make install-dev
3743
3844
- name: Build API reference

.github/workflows/python_integration_tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
if: github.event.pull_request.head.repo.owner.login == 'apify' || github.ref == 'refs/heads/master'
2222
strategy:
2323
matrix:
24-
python-version: ["3.9", "3.12"] # Oldest and newest supported Python versions.
24+
python-version: ["3.9", "3.13"] # The oldest and newest supported Python versions.
2525
max-parallel: 1 # No parallel tests to avoid exceeding API limits.
2626

2727
steps:

.github/workflows/python_lint_check.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
12-
python-version: ["3.9", "3.10", "3.11", "3.12"]
12+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] # All supported Python versions.
1313

1414
steps:
1515
- name: Checkout repository

.github/workflows/python_type_check.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
12-
python-version: ["3.9", "3.10", "3.11", "3.12"]
12+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] # All supported Python versions.
1313

1414
steps:
1515
- name: Checkout repository

.github/workflows/python_unit_tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ jobs:
88
name: Unit tests
99
strategy:
1010
matrix:
11-
os: [ubuntu-latest, windows-latest]
12-
python-version: ["3.9", "3.10", "3.11", "3.12"]
11+
os: ["ubuntu-latest", "windows-latest"]
12+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] # All supported Python versions.
1313
runs-on: ${{ matrix.os }}
1414

1515
steps:

git-cliff-release/fetch_pr_issues.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ gh api graphql --paginate --slurp \
2828
}
2929
}
3030
}
31-
' |
31+
' |
3232
jq '
3333
[
34-
[.[] | .data.repository.pullRequests.nodes ]
34+
[.[] | .data.repository.pullRequests.nodes ]
3535
| flatten[]
3636
| {
3737
(.number | tostring):

prepare-pypi-distribution/action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ inputs:
1414
python_version:
1515
required: false
1616
type: string
17-
default: 3.12
17+
default: "3.13" # The newest Python version.
1818

1919
runs:
2020
using: composite

0 commit comments

Comments
 (0)