mirror of
https://github.com/pacnpal/django-anymail.git
synced 2025-12-20 03:41:05 -05:00
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.)
This commit is contained in:
25
.github/workflows/integration-test.yml
vendored
25
.github/workflows/integration-test.yml
vendored
@@ -29,7 +29,6 @@ jobs:
|
|||||||
|
|
||||||
test:
|
test:
|
||||||
name: ${{ matrix.config.tox }} ${{ matrix.config.options }}
|
name: ${{ matrix.config.tox }} ${{ matrix.config.options }}
|
||||||
# Ubuntu 22.04 runner includes Python 3.10
|
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
needs: skip_duplicate_runs
|
needs: skip_duplicate_runs
|
||||||
if: needs.skip_duplicate_runs.outputs.should_skip != 'true'
|
if: needs.skip_duplicate_runs.outputs.should_skip != 'true'
|
||||||
@@ -40,18 +39,18 @@ jobs:
|
|||||||
# Live API integration tests are run on only one representative Python/Django version
|
# Live API integration tests are run on only one representative Python/Django version
|
||||||
# combination, to avoid rapidly consuming the testing accounts' entire send allotments.
|
# combination, to avoid rapidly consuming the testing accounts' entire send allotments.
|
||||||
config:
|
config:
|
||||||
- { tox: django41-py310-amazon_ses, python: "3.10" }
|
- { tox: django41-py310-amazon_ses, python: "3.12" }
|
||||||
- { tox: django41-py310-brevo, python: "3.10" }
|
- { tox: django41-py310-brevo, python: "3.12" }
|
||||||
- { tox: django41-py310-mailersend, python: "3.10" }
|
- { tox: django41-py310-mailersend, python: "3.12" }
|
||||||
- { tox: django41-py310-mailgun, python: "3.10" }
|
- { tox: django41-py310-mailgun, python: "3.12" }
|
||||||
- { tox: django41-py310-mailjet, python: "3.10" }
|
- { tox: django41-py310-mailjet, python: "3.12" }
|
||||||
- { tox: django41-py310-mandrill, python: "3.10" }
|
- { tox: django41-py310-mandrill, python: "3.12" }
|
||||||
- { tox: django41-py310-postal, python: "3.10" }
|
- { tox: django41-py310-postal, python: "3.12" }
|
||||||
- { tox: django41-py310-postmark, python: "3.10" }
|
- { tox: django41-py310-postmark, python: "3.12" }
|
||||||
- { tox: django41-py310-resend, python: "3.10" }
|
- { tox: django41-py310-resend, python: "3.12" }
|
||||||
- { tox: django41-py310-sendgrid, python: "3.10" }
|
- { tox: django41-py310-sendgrid, python: "3.12" }
|
||||||
- { tox: django41-py310-sparkpost, python: "3.10" }
|
- { tox: django41-py310-sparkpost, python: "3.12" }
|
||||||
- { tox: django41-py310-unisender_go, python: "3.10" }
|
- { tox: django41-py310-unisender_go, python: "3.12" }
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Get code
|
- name: Get code
|
||||||
|
|||||||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -31,7 +31,7 @@ jobs:
|
|||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: "3.10"
|
python-version: "3.12"
|
||||||
|
|
||||||
- name: Install build requirements
|
- name: Install build requirements
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
3
.github/workflows/test.yml
vendored
3
.github/workflows/test.yml
vendored
@@ -30,7 +30,6 @@ jobs:
|
|||||||
python -m tox --gh-matrix-dump # for debugging
|
python -m tox --gh-matrix-dump # for debugging
|
||||||
|
|
||||||
test:
|
test:
|
||||||
# Ubuntu 22.04 runner includes Python 3.10
|
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
needs: get-envlist
|
needs: get-envlist
|
||||||
strategy:
|
strategy:
|
||||||
@@ -53,7 +52,7 @@ jobs:
|
|||||||
# for installing/running tox
|
# for installing/running tox
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: "3.10"
|
python-version: "3.12"
|
||||||
- name: Install tox
|
- name: Install tox
|
||||||
run: |
|
run: |
|
||||||
set -x
|
set -x
|
||||||
|
|||||||
4
tox.ini
4
tox.ini
@@ -82,7 +82,7 @@ passenv =
|
|||||||
ANYMAIL_TEST_*
|
ANYMAIL_TEST_*
|
||||||
|
|
||||||
[testenv:lint]
|
[testenv:lint]
|
||||||
basepython = python3.8
|
basepython = python3.12
|
||||||
skip_install = true
|
skip_install = true
|
||||||
passenv =
|
passenv =
|
||||||
CONTINUOUS_INTEGRATION
|
CONTINUOUS_INTEGRATION
|
||||||
@@ -103,7 +103,7 @@ commands =
|
|||||||
pre-commit run --all-files
|
pre-commit run --all-files
|
||||||
|
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
basepython = python3.11
|
basepython = python3.12
|
||||||
passenv =
|
passenv =
|
||||||
CONTINUOUS_INTEGRATION
|
CONTINUOUS_INTEGRATION
|
||||||
GOOGLE_ANALYTICS_ID
|
GOOGLE_ANALYTICS_ID
|
||||||
|
|||||||
Reference in New Issue
Block a user