Skip to content

Commit 5b87542

Browse files
committed
chore: update release pipeline
1 parent ce6e27f commit 5b87542

File tree

3 files changed

+39
-79
lines changed

3 files changed

+39
-79
lines changed

.github/workflows/python-release.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,19 @@ jobs:
88
release:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v3
12-
- name: Set up Python 3.10
13-
uses: actions/setup-python@v4
11+
- uses: actions/checkout@v4
12+
13+
- name: Set up Python 3.12
14+
uses: actions/setup-python@v5
1415
with:
15-
python-version: "3.10"
16+
python-version: "3.12"
17+
1618
- name: Install build requirements
1719
run: python -m pip install wheel
20+
1821
- name: Build package
1922
run: python setup.py sdist bdist_wheel
23+
2024
- name: Publish package
2125
uses: pypa/gh-action-pypi-publish@master
2226
with:

.github/workflows/python-tests.yml

+24-67
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,16 @@ jobs:
66
format:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v3
10-
- name: Set up Python 3.10
11-
uses: actions/setup-python@v4
9+
- uses: actions/checkout@v4
10+
11+
- name: Set up Python 3.12
12+
uses: actions/setup-python@v5
1213
with:
13-
python-version: "3.10"
14+
python-version: "3.12"
15+
1416
- name: Install dependencies
1517
run: pip install tox
18+
1619
- name: Validate formatting
1720
run: tox -e format
1821

@@ -22,81 +25,35 @@ jobs:
2225
max-parallel: 4
2326
matrix:
2427
tox_env:
25-
- py36-django32
26-
- py37-django32
27-
- py38-django32
28-
- py39-django32
29-
- py310-django32
30-
- py38-django40
31-
- py39-django40
32-
- py310-django40
33-
- py38-django41
34-
- py39-django41
35-
- py310-django41
36-
- py311-django41
28+
- py38-django42
29+
- py312-django42
30+
- py312-django50
31+
- py312-django51
3732
include:
38-
- python-version: 3.6
39-
tox_env: py36-django32
40-
- python-version: 3.7
41-
tox_env: py37-django32
42-
- python-version: 3.8
43-
tox_env: py38-django32
44-
- python-version: 3.9
45-
tox_env: py39-django32
46-
- python-version: "3.10"
47-
tox_env: py310-django32
48-
- python-version: 3.8
49-
tox_env: py38-django40
50-
- python-version: 3.9
51-
tox_env: py39-django40
52-
- python-version: "3.10"
53-
tox_env: py310-django40
5433
- python-version: 3.8
55-
tox_env: py38-django41
56-
- python-version: 3.9
57-
tox_env: py39-django41
58-
- python-version: "3.10"
59-
tox_env: py310-django41
60-
- python-version: "3.11"
61-
tox_env: py311-django41
34+
tox_env: py38-django42
35+
- python-version: 3.12
36+
tox_env: py312-django42
37+
- python-version: 3.12
38+
tox_env: py312-django50
39+
- python-version: 3.12
40+
tox_env: py312-django51
6241

6342
steps:
64-
- uses: actions/checkout@v3
43+
- uses: actions/checkout@v4
6544
- name: Set up Python ${{ matrix.python-version }}
66-
uses: actions/setup-python@v4
45+
46+
uses: actions/setup-python@v5
6747
with:
6848
python-version: "${{ matrix.python-version }}"
49+
6950
- name: Install dependencies
7051
run: |
7152
python -m pip install --upgrade pip
7253
pip install tox tox-gh-actions
54+
7355
- name: Test with tox
7456
run: tox -e ${{ matrix.tox_env }}
57+
7558
- name: Prepare artifacts
7659
run: mkdir .coverage-data && mv .coverage.* .coverage-data/
77-
- uses: actions/upload-artifact@master
78-
with:
79-
name: coverage-data
80-
path: .coverage-data/
81-
82-
coverage:
83-
runs-on: ubuntu-latest
84-
needs: [test]
85-
steps:
86-
- uses: actions/checkout@v3
87-
- uses: actions/download-artifact@master
88-
with:
89-
name: coverage-data
90-
path: .
91-
- name: Set up Python 3.10
92-
uses: actions/setup-python@v4
93-
with:
94-
python-version: "3.10"
95-
- name: Install dependencies
96-
run: |
97-
python -m pip install --upgrade pip
98-
pip install tox
99-
- name: Prepare Coverage report
100-
run: tox -e coverage-report
101-
- name: Upload to codecov
102-
uses: codecov/codecov-action@v1.0.6

tox.ini

+7-8
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,27 @@
11
[tox]
2-
envlist = py{36,37,38,39,310,311}-django{32,40,41}
2+
envlist = py{38,39,310,311,312}-django{42,50,51}
33

44
[gh-actions]
55
python =
6-
3.6: py36
7-
3.7: py37
86
3.8: py38
97
3.9: py39
108
3.10: py310
119
3.11: py311
10+
3.12: py312
1211

1312
[testenv]
1413
commands = coverage run --source django_iam_dbauth --parallel -m pytest {posargs}
1514
deps =
16-
django32: Django>=3.2,<3.3
17-
django40: Django>=4.0,<4.1
18-
django41: Django>=4.1,<4.2
15+
django42: Django>=4.2,<4.3
16+
django50: Django>=5.0,<5.1
17+
django51: Django>=5.1,<5.2
1918
psycopg2
2019
mysqlclient
2120
boto3
2221
extras = test
2322

2423
[testenv:coverage-report]
25-
basepython = python3.10
24+
basepython = python3.12
2625
deps = coverage[toml]
2726
skip_install = true
2827
commands =
@@ -31,7 +30,7 @@ commands =
3130
coverage report
3231

3332
[testenv:format]
34-
basepython = python3.10
33+
basepython = python3.12
3534
deps =
3635
black
3736
isort[pyproject]==4.3.21

0 commit comments

Comments
 (0)