Skip to content

Commit 7289f1d

Browse files
committed
chore: add Python3.12 support to CI, drop Python 3.11
Updates CI to support Python 3.12 in CI, drops support for Python 3.11. Python 3.11 support was an interrim version used when addingPython 3.12 support initially caused some issues in this IDA.
1 parent aff7362 commit 7289f1d

File tree

5 files changed

+29
-25
lines changed

5 files changed

+29
-25
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
python-version: ["3.11"]
14+
python-version: ["3.12"]
1515
steps:
1616
- uses: actions/checkout@v4
1717
- uses: actions/setup-python@v5
@@ -36,7 +36,7 @@ jobs:
3636
runs-on: ubuntu-latest
3737
strategy:
3838
matrix:
39-
python-version: ["3.11"]
39+
python-version: ["3.12"]
4040
django-version: ["django42"]
4141
steps:
4242
- uses: actions/checkout@v4
@@ -63,7 +63,7 @@ jobs:
6363
make static
6464
make tests
6565
- name: Run code coverage
66-
if: matrix.python-version == '3.11' && matrix.django-version == 'django42'
66+
if: matrix.python-version == '3.12' && matrix.django-version == 'django42'
6767
uses: codecov/codecov-action@v5
6868
with:
6969
flags: unittests
@@ -72,11 +72,14 @@ jobs:
7272

7373
docs:
7474
runs-on: ubuntu-latest
75+
strategy:
76+
matrix:
77+
python-version: ["3.12"]
7578
steps:
7679
- uses: actions/checkout@v4
7780
- uses: actions/setup-python@v5
7881
with:
79-
python-version: "3.11"
82+
python-version: ${{ matrix.python-version }}
8083
architecture: x64
8184
- name: Install Dependencies
8285
run: make requirements

.github/workflows/migrations-mysql8-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
python-version: [ 3.11 ]
16+
python-version: ["3.12"]
1717

1818
steps:
1919
- name: Checkout repo

.github/workflows/upgrade-python-requirements.yml

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,25 @@ name: Upgrade Requirements
22

33
on:
44
schedule:
5-
# will start the job at 13:15 UTC every Tuesday
6-
- cron: "15 13 * * 2"
5+
# will start the job at 13:15 UTC every Tuesday
6+
- cron: "15 13 * * 2"
77
workflow_dispatch:
8-
inputs:
9-
branch:
10-
description: 'Target branch to create requirements PR against'
11-
required: true
12-
default: 'master'
8+
inputs:
9+
branch:
10+
description: 'Target branch to create requirements PR against'
11+
required: true
12+
default: 'master'
1313
jobs:
14-
call-upgrade-python-requirements-workflow:
15-
with:
16-
branch: ${{ github.event.inputs.branch || 'master' }}
17-
team_reviewers: "2u-aperture"
18-
email_address: aperture@2u-internal.opsgenie.net
19-
send_success_notification: true
20-
secrets:
21-
requirements_bot_github_token: ${{ secrets.REQUIREMENTS_BOT_GITHUB_TOKEN }}
22-
requirements_bot_github_email: ${{ secrets.REQUIREMENTS_BOT_GITHUB_EMAIL }}
23-
edx_smtp_username: ${{ secrets.EDX_SMTP_USERNAME }}
24-
edx_smtp_password: ${{ secrets.EDX_SMTP_PASSWORD }}
14+
call-upgrade-python-requirements-workflow:
2515
uses: openedx/.github/.github/workflows/upgrade-python-requirements.yml@master
16+
with:
17+
branch: ${{ github.event.inputs.branch || 'master' }}
18+
python_version: "3.12"
19+
team_reviewers: "2u-aperture"
20+
email_address: aperture@2u-internal.opsgenie.net
21+
send_success_notification: true
22+
secrets:
23+
requirements_bot_github_token: ${{ secrets.REQUIREMENTS_BOT_GITHUB_TOKEN }}
24+
requirements_bot_github_email: ${{ secrets.REQUIREMENTS_BOT_GITHUB_EMAIL }}
25+
edx_smtp_username: ${{ secrets.EDX_SMTP_USERNAME }}
26+
edx_smtp_password: ${{ secrets.EDX_SMTP_PASSWORD }}

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ version: 2
99
build:
1010
os: ubuntu-lts-latest
1111
tools:
12-
python: "3.11"
12+
python: "3.12"
1313

1414
# Build documentation in the docs/ directory with Sphinx
1515
sphinx:

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py{3.8,3.11}-django{42}
2+
envlist = py{3.12}-django{42}
33
skipsdist = true
44

55
[pytest]

0 commit comments

Comments
 (0)