Skip to content

Commit 13b19a4

Browse files
authored
Improve CI workflows (#155)
- update versions of runners and actions - harden jobs - add Python 3.12 to testing - temporarily disable testing for main
2 parents c2edab6 + f73e8d3 commit 13b19a4

File tree

4 files changed

+30
-18
lines changed

4 files changed

+30
-18
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,21 @@ on:
55
tags:
66
- '*'
77

8+
permissions: {}
9+
810
jobs:
911
build:
1012
if: github.repository == 'jazzband/django-simple-menu'
1113
runs-on: ubuntu-latest
1214

1315
steps:
14-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
1517
with:
1618
fetch-depth: 0
19+
persist-credentials: false
1720

1821
- name: Set up Python
19-
uses: actions/setup-python@v4
22+
uses: actions/setup-python@v5
2023
with:
2124
python-version: 3.11
2225

@@ -33,7 +36,7 @@ jobs:
3336
3437
- name: Upload packages to Jazzband
3538
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
36-
uses: pypa/gh-action-pypi-publish@master
39+
uses: pypa/gh-action-pypi-publish@release/v1
3740
with:
3841
user: jazzband
3942
password: ${{ secrets.JAZZBAND_RELEASE_KEY }}

.github/workflows/test.yml

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ on:
1010
env:
1111
FORCE_COLOR: "1"
1212

13+
permissions: {}
14+
1315
jobs:
1416
build:
1517
name: build (Python ${{ matrix.python-version }}, Django ${{ matrix.django-version }})
16-
runs-on: ubuntu-20.04
18+
runs-on: ubuntu-latest
1719
strategy:
1820
fail-fast: false
1921
matrix:
@@ -43,19 +45,23 @@ jobs:
4345
python-version: '3.10'
4446
- django-version: '4.2'
4547
python-version: '3.11'
46-
47-
- django-version: 'main'
48-
python-version: '3.10'
49-
- django-version: 'main'
50-
python-version: '3.11'
51-
- django-version: 'main'
48+
- django-version: '4.2'
5249
python-version: '3.12'
5350

51+
# - django-version: 'main'
52+
# python-version: '3.10'
53+
# - django-version: 'main'
54+
# python-version: '3.11'
55+
# - django-version: 'main'
56+
# python-version: '3.12'
57+
5458
steps:
55-
- uses: actions/checkout@v3
59+
- uses: actions/checkout@v4
60+
with:
61+
persist-credentials: false
5662

5763
- name: Set up Python ${{ matrix.python-version }}
58-
uses: actions/setup-python@v4
64+
uses: actions/setup-python@v5
5965
with:
6066
python-version: ${{ matrix.python-version }}
6167
allow-prereleases: true
@@ -72,7 +78,8 @@ jobs:
7278
env:
7379
DJANGO: ${{ matrix.django-version }}
7480

75-
- name: Upload coverage
76-
uses: codecov/codecov-action@v3
77-
with:
78-
name: Python ${{ matrix.python-version }}
81+
# FIXME: Codecov requires a token, which we do not have
82+
# - name: Upload coverage
83+
# uses: codecov/codecov-action@v5
84+
# with:
85+
# name: Python ${{ matrix.python-version }}

CHANGES

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
django-simple-menu changelog
22
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33

4+
Unreleased
5+
- Test on Python 3.12
6+
47
Version 2.1.3 - Released October 4th, 2023
58
- Stop testing under Python 3.6, 3.7, and Django 4.0 (#138, #140)
69
- Migrate from setup.cfg to pyproject.toml (#138)

tox.ini

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
requires =
33
tox>=4.2
44
env_list =
5-
py3{11, 10, 9, 8}-dj42
5+
py3{12, 11, 10, 9, 8}-dj42
66
py3{11, 10, 9, 8}-dj41
77
py3{10, 9, 8}-dj32
8-
py3{12, 11, 10}-djmain
98

109
[testenv]
1110
package = wheel

0 commit comments

Comments
 (0)