Skip to content

Commit a5caf34

Browse files
committed
feat: update github actions
These github actions has some outdated actions. This updates them to the latest available . Also, Python3.12 is the standard now
1 parent 0b48335 commit a5caf34

File tree

4 files changed

+74
-78
lines changed

4 files changed

+74
-78
lines changed

.github/workflows/lint.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1616
- name: Set up Python
17-
uses: actions/setup-python@v4
17+
uses: actions/setup-python@v5
1818
with:
19-
python-version: "3.11"
20-
cache: 'pip'
19+
python-version: "3.12"
20+
cache: "pip"
2121
- run: |
2222
python -m pip install --upgrade pip
2323
pip install ruff

.github/workflows/publish-to-live-pypi.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -15,27 +15,27 @@ jobs:
1515
permissions:
1616
id-token: write
1717
steps:
18-
- uses: actions/checkout@v3
19-
- name: Set up Python 3.10
20-
uses: actions/setup-python@v5
21-
with:
22-
python-version: '3.12'
18+
- uses: actions/checkout@v4
19+
- name: Set up Python 3.12
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version: "3.12"
2323

24-
- name: Install pypa/build
25-
run: >-
26-
python -m
27-
pip install
28-
build
29-
--user
30-
- name: Build a binary wheel and a source tarball
31-
run: >-
32-
python -m
33-
build
34-
--sdist
35-
--wheel
36-
--outdir dist/
37-
.
24+
- name: Install pypa/build
25+
run: >-
26+
python -m
27+
pip install
28+
build
29+
--user
30+
- name: Build a binary wheel and a source tarball
31+
run: >-
32+
python -m
33+
build
34+
--sdist
35+
--wheel
36+
--outdir dist/
37+
.
3838
39-
- name: Publish distribution 📦 to PyPI
40-
if: startsWith(github.ref, 'refs/tags')
41-
uses: pypa/gh-action-pypi-publish@release/v1
39+
- name: Publish distribution 📦 to PyPI
40+
if: startsWith(github.ref, 'refs/tags')
41+
uses: pypa/gh-action-pypi-publish@release/v1

.github/workflows/publish-to-test-pypi.yml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -15,29 +15,29 @@ jobs:
1515
permissions:
1616
id-token: write
1717
steps:
18-
- uses: actions/checkout@v3
19-
- name: Set up Python 3.10
20-
uses: actions/setup-python@v5
21-
with:
22-
python-version: '3.12'
18+
- uses: actions/checkout@v4
19+
- name: Set up Python 3.12
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version: "3.12"
2323

24-
- name: Install pypa/build
25-
run: >-
26-
python -m
27-
pip install
28-
build
29-
--user
30-
- name: Build a binary wheel and a source tarball
31-
run: >-
32-
python -m
33-
build
34-
--sdist
35-
--wheel
36-
--outdir dist/
37-
.
24+
- name: Install pypa/build
25+
run: >-
26+
python -m
27+
pip install
28+
build
29+
--user
30+
- name: Build a binary wheel and a source tarball
31+
run: >-
32+
python -m
33+
build
34+
--sdist
35+
--wheel
36+
--outdir dist/
37+
.
3838
39-
- name: Publish distribution 📦 to Test PyPI
40-
uses: pypa/gh-action-pypi-publish@release/v1
41-
with:
42-
repository_url: https://test.pypi.org/legacy/
43-
skip_existing: true
39+
- name: Publish distribution 📦 to Test PyPI
40+
uses: pypa/gh-action-pypi-publish@release/v1
41+
with:
42+
repository_url: https://test.pypi.org/legacy/
43+
skip_existing: true

.github/workflows/test.yml

Lines changed: 24 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -8,37 +8,33 @@ jobs:
88
strategy:
99
fail-fast: false
1010
matrix:
11-
python-version: [ "3.9", "3.10", "3.11", "3.12"] # latest release minus two
12-
requirements-file: [
13-
dj42_cms311.txt,
14-
dj42_cms41.txt,
15-
dj50_cms41.txt,
16-
dj51_cms41.txt
17-
]
18-
os: [
19-
ubuntu-20.04,
20-
]
11+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
12+
requirements-file:
13+
[dj42_cms311.txt, dj42_cms41.txt, dj50_cms41.txt, dj51_cms41.txt]
14+
os: [ubuntu-20.04]
2115
exclude:
22-
- python-version: "3.9"
23-
requirements-file: dj50_cms41.txt
24-
- python-version: "3.9"
25-
requirements-file: dj51_cms41.txt
16+
- python-version: "3.9"
17+
requirements-file: dj50_cms41.txt
18+
- python-version: "3.9"
19+
requirements-file: dj51_cms41.txt
2620

2721
steps:
28-
- uses: actions/checkout@v1
29-
- name: Set up Python ${{ matrix.python-version }}
22+
- uses: actions/checkout@v4
23+
- name: Set up Python ${{ matrix.python-version }}
3024

31-
uses: actions/setup-python@v2
32-
with:
33-
python-version: ${{ matrix.python-version }}
34-
- name: Install dependencies
35-
run: |
36-
python -m pip install --upgrade pip
37-
pip install -r tests/requirements/${{ matrix.requirements-file }}
38-
python setup.py install
25+
uses: actions/setup-python@v5
26+
with:
27+
python-version: ${{ matrix.python-version }}
28+
- name: Install dependencies
29+
run: |
30+
python -m pip install --upgrade pip
31+
pip install -r tests/requirements/${{ matrix.requirements-file }}
32+
python setup.py install
3933
40-
- name: Run coverage
41-
run: coverage run tests/settings.py
34+
- name: Run coverage
35+
run: coverage run tests/settings.py
4236

43-
- name: Upload Coverage to Codecov
44-
uses: codecov/codecov-action@v1
37+
- name: Upload Coverage to Codecov
38+
uses: codecov/codecov-action@v5
39+
with:
40+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)