Skip to content

Commit 1da9011

Browse files
committed
CI/CD: use Python 3.12 by default
For CI/CD tasks not testing a specific Python version, switch to Python 3.12. (Had been using mixture of 3.10 and 3.11. GitHub's ubuntu-22.04 runner has Python 3.10 installed by default, but 3.12 should be in the tool cache.)
1 parent 0e020b2 commit 1da9011

File tree

4 files changed

+16
-18
lines changed

4 files changed

+16
-18
lines changed

.github/workflows/integration-test.yml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ jobs:
2929

3030
test:
3131
name: ${{ matrix.config.tox }} ${{ matrix.config.options }}
32-
# Ubuntu 22.04 runner includes Python 3.10
3332
runs-on: ubuntu-22.04
3433
needs: skip_duplicate_runs
3534
if: needs.skip_duplicate_runs.outputs.should_skip != 'true'
@@ -40,18 +39,18 @@ jobs:
4039
# Live API integration tests are run on only one representative Python/Django version
4140
# combination, to avoid rapidly consuming the testing accounts' entire send allotments.
4241
config:
43-
- { tox: django41-py310-amazon_ses, python: "3.10" }
44-
- { tox: django41-py310-brevo, python: "3.10" }
45-
- { tox: django41-py310-mailersend, python: "3.10" }
46-
- { tox: django41-py310-mailgun, python: "3.10" }
47-
- { tox: django41-py310-mailjet, python: "3.10" }
48-
- { tox: django41-py310-mandrill, python: "3.10" }
49-
- { tox: django41-py310-postal, python: "3.10" }
50-
- { tox: django41-py310-postmark, python: "3.10" }
51-
- { tox: django41-py310-resend, python: "3.10" }
52-
- { tox: django41-py310-sendgrid, python: "3.10" }
53-
- { tox: django41-py310-sparkpost, python: "3.10" }
54-
- { tox: django41-py310-unisender_go, python: "3.10" }
42+
- { tox: django41-py310-amazon_ses, python: "3.12" }
43+
- { tox: django41-py310-brevo, python: "3.12" }
44+
- { tox: django41-py310-mailersend, python: "3.12" }
45+
- { tox: django41-py310-mailgun, python: "3.12" }
46+
- { tox: django41-py310-mailjet, python: "3.12" }
47+
- { tox: django41-py310-mandrill, python: "3.12" }
48+
- { tox: django41-py310-postal, python: "3.12" }
49+
- { tox: django41-py310-postmark, python: "3.12" }
50+
- { tox: django41-py310-resend, python: "3.12" }
51+
- { tox: django41-py310-sendgrid, python: "3.12" }
52+
- { tox: django41-py310-sparkpost, python: "3.12" }
53+
- { tox: django41-py310-unisender_go, python: "3.12" }
5554

5655
steps:
5756
- name: Get code

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Setup Python
3232
uses: actions/setup-python@v5
3333
with:
34-
python-version: "3.10"
34+
python-version: "3.12"
3535

3636
- name: Install build requirements
3737
run: |

.github/workflows/test.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ jobs:
3030
python -m tox --gh-matrix-dump # for debugging
3131
3232
test:
33-
# Ubuntu 22.04 runner includes Python 3.10
3433
runs-on: ubuntu-22.04
3534
needs: get-envlist
3635
strategy:
@@ -53,7 +52,7 @@ jobs:
5352
# for installing/running tox
5453
uses: actions/setup-python@v5
5554
with:
56-
python-version: "3.10"
55+
python-version: "3.12"
5756
- name: Install tox
5857
run: |
5958
set -x

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ passenv =
8282
ANYMAIL_TEST_*
8383

8484
[testenv:lint]
85-
basepython = python3.8
85+
basepython = python3.12
8686
skip_install = true
8787
passenv =
8888
CONTINUOUS_INTEGRATION
@@ -103,7 +103,7 @@ commands =
103103
pre-commit run --all-files
104104

105105
[testenv:docs]
106-
basepython = python3.11
106+
basepython = python3.12
107107
passenv =
108108
CONTINUOUS_INTEGRATION
109109
GOOGLE_ANALYTICS_ID

0 commit comments

Comments
 (0)