mirror of
https://github.com/pacnpal/django-anymail.git
synced 2025-12-20 03:41:05 -05:00
CI/CD: upgrade workflow dependencies
This commit is contained in:
12
.github/workflows/integration-test.yml
vendored
12
.github/workflows/integration-test.yml
vendored
@@ -15,21 +15,21 @@ jobs:
|
|||||||
skip_duplicate_runs:
|
skip_duplicate_runs:
|
||||||
# Avoid running the live integration tests twice on the same code
|
# Avoid running the live integration tests twice on the same code
|
||||||
# (to conserve limited sending quotas in the live ESP test accounts)
|
# (to conserve limited sending quotas in the live ESP test accounts)
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-22.04
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
outputs:
|
outputs:
|
||||||
should_skip: ${{ steps.skip_check.outputs.should_skip }}
|
should_skip: ${{ steps.skip_check.outputs.should_skip }}
|
||||||
steps:
|
steps:
|
||||||
- id: skip_check
|
- id: skip_check
|
||||||
# uses: fkirc/skip-duplicate-actions@v5.3.0
|
# uses: fkirc/skip-duplicate-actions@v5.3.1
|
||||||
uses: fkirc/skip-duplicate-actions@12aca0a884f6137d619d6a8a09fcc3406ced5281
|
uses: fkirc/skip-duplicate-actions@f75f66ce1886f00957d99748a42c724f4330bdcf
|
||||||
with:
|
with:
|
||||||
concurrent_skipping: "same_content_newer"
|
concurrent_skipping: "same_content_newer"
|
||||||
cancel_others: "true"
|
cancel_others: "true"
|
||||||
|
|
||||||
test:
|
test:
|
||||||
name: ${{ matrix.config.tox }} ${{ matrix.config.options }}
|
name: ${{ matrix.config.tox }} ${{ matrix.config.options }}
|
||||||
runs-on: ubuntu-20.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'
|
||||||
timeout-minutes: 15
|
timeout-minutes: 15
|
||||||
@@ -54,9 +54,9 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Get code
|
- name: Get code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
- name: Setup Python ${{ matrix.config.python }}
|
- name: Setup Python ${{ matrix.config.python }}
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.config.python }}
|
python-version: ${{ matrix.config.python }}
|
||||||
- name: Install tox
|
- name: Install tox
|
||||||
|
|||||||
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
@@ -19,17 +19,17 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-22.04
|
||||||
environment: release
|
environment: release
|
||||||
permissions:
|
permissions:
|
||||||
# `gh release` requires write permission on repo contents
|
# `gh release` requires write permission on repo contents
|
||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- name: Get code
|
- name: Get code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: "3.10"
|
python-version: "3.10"
|
||||||
|
|
||||||
|
|||||||
12
.github/workflows/test.yml
vendored
12
.github/workflows/test.yml
vendored
@@ -13,12 +13,12 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
get-envlist:
|
get-envlist:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-22.04
|
||||||
outputs:
|
outputs:
|
||||||
envlist: ${{ steps.generate-envlist.outputs.envlist }}
|
envlist: ${{ steps.generate-envlist.outputs.envlist }}
|
||||||
steps:
|
steps:
|
||||||
- name: Get code
|
- name: Get code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
- name: Install tox-gh-matrix
|
- name: Install tox-gh-matrix
|
||||||
run: |
|
run: |
|
||||||
python -m pip install 'tox<4' 'tox-gh-matrix<0.3'
|
python -m pip install 'tox<4' 'tox-gh-matrix<0.3'
|
||||||
@@ -30,7 +30,7 @@ jobs:
|
|||||||
python -m tox --gh-matrix-dump # for debugging
|
python -m tox --gh-matrix-dump # for debugging
|
||||||
|
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-22.04
|
||||||
needs: get-envlist
|
needs: get-envlist
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@@ -41,16 +41,16 @@ jobs:
|
|||||||
timeout-minutes: 15
|
timeout-minutes: 15
|
||||||
steps:
|
steps:
|
||||||
- name: Get code
|
- name: Get code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
- name: Setup Python ${{ matrix.tox.python.version }}
|
- name: Setup Python ${{ matrix.tox.python.version }}
|
||||||
# Ensure matrix Python version is installed and available for tox
|
# Ensure matrix Python version is installed and available for tox
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.tox.python.spec }}
|
python-version: ${{ matrix.tox.python.spec }}
|
||||||
- name: Setup default Python
|
- name: Setup default Python
|
||||||
# Change default Python version back to something consistent
|
# Change default Python version back to something consistent
|
||||||
# for installing/running tox
|
# for installing/running tox
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: "3.8"
|
python-version: "3.8"
|
||||||
- name: Install tox
|
- name: Install tox
|
||||||
|
|||||||
Reference in New Issue
Block a user