Skip to content

Commit eedc61e

Browse files
authored
Update CI and tooling (#236)
* Update pre-commit hooks Signed-off-by: Yurii Serhiichuk <[email protected]> * Add Python 3.12 Signed-off-by: Yurii Serhiichuk <[email protected]> * Drop python 3.7 and add 3.12 to TOX Signed-off-by: Yurii Serhiichuk <[email protected]> * Migrate to latest action versions. Drop v3.7 from CI and add 3.12 Signed-off-by: Yurii Serhiichuk <[email protected]> * Migrate to Python 3.8 Signed-off-by: Yurii Serhiichuk <[email protected]> * Fix changelog message. Signed-off-by: Yurii Serhiichuk <[email protected]> --------- Signed-off-by: Yurii Serhiichuk <[email protected]>
1 parent 21572af commit eedc61e

File tree

7 files changed

+19
-15
lines changed

7 files changed

+19
-15
lines changed

.github/workflows/main.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ jobs:
77
lint:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v3
10+
- uses: actions/checkout@v4
1111
- name: Setup Python
12-
uses: actions/setup-python@v4
12+
uses: actions/setup-python@v5
1313
with:
1414
python-version: '3.11'
1515
cache: 'pip'
@@ -22,13 +22,13 @@ jobs:
2222
test:
2323
strategy:
2424
matrix:
25-
python: ['3.7', '3.8', '3.9', '3.10', '3.11']
25+
python: ['3.8', '3.9', '3.10', '3.11']
2626
os: [ubuntu-latest, windows-latest, macos-latest]
2727
runs-on: ${{ matrix.os }}
2828
steps:
29-
- uses: actions/checkout@v3
29+
- uses: actions/checkout@v4
3030
- name: Setup Python
31-
uses: actions/setup-python@v4
31+
uses: actions/setup-python@v5
3232
with:
3333
python-version: ${{ matrix.python }}
3434
cache: 'pip'

.github/workflows/pypi-release.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,16 @@ jobs:
1212
name: Build source distribution
1313
runs-on: ubuntu-22.04
1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616
with:
1717
fetch-depth: 0
1818

1919
- name: Build SDist and wheel
2020
run: pipx run build
2121

22-
- uses: actions/upload-artifact@v3
22+
- uses: actions/upload-artifact@v4
2323
with:
24+
name: artifact
2425
path: dist/*
2526

2627
- name: Check metadata
@@ -30,7 +31,7 @@ jobs:
3031
if: github.event_name == 'push'
3132
needs: [ build_dist ]
3233
steps:
33-
- uses: actions/checkout@v3
34+
- uses: actions/checkout@v4
3435
with:
3536
fetch-depth: 0
3637
- name: Set up Python
@@ -40,7 +41,7 @@ jobs:
4041
cache: 'pip'
4142
- name: Install build dependencies
4243
run: pip install -U setuptools wheel build
43-
- uses: actions/download-artifact@v3
44+
- uses: actions/download-artifact@v4
4445
with:
4546
# unpacks default artifact into dist/
4647
# if `name: artifact` is omitted, the action will create extra parent dir

.pre-commit-config.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ repos:
66
- id: end-of-file-fixer
77
- id: check-toml
88
- repo: https://github.com/pycqa/isort
9-
rev: 5.12.0
9+
rev: 5.13.2
1010
hooks:
1111
- id: isort
1212
args: [ "--profile", "black", "--filter-files" ]
1313
- repo: https://github.com/psf/black
14-
rev: 23.10.1
14+
rev: 24.4.2
1515
hooks:
1616
- id: black
1717
language_version: python3.11
1818
- repo: https://github.com/pre-commit/mirrors-mypy
19-
rev: v1.6.1
19+
rev: v1.10.0
2020
hooks:
2121
- id: mypy
2222
files: ^(cloudevents/)

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
### Changed
10+
11+
- Dropped Python3.7 from CI while its EOL.
12+
913
## [1.10.1]
1014

1115
### Fixed

mypy.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[mypy]
22
plugins = pydantic.mypy
3-
python_version = 3.7
3+
python_version = 3.8
44

55
pretty = True
66
show_error_context = True

setup.py

-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ def get_version(rel_path):
6565
"Programming Language :: Python",
6666
"Programming Language :: Python :: 3",
6767
"Programming Language :: Python :: 3 :: Only",
68-
"Programming Language :: Python :: 3.7",
6968
"Programming Language :: Python :: 3.8",
7069
"Programming Language :: Python :: 3.9",
7170
"Programming Language :: Python :: 3.10",

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py{37,38,39,310,311},lint
2+
envlist = py{38,39,310,311,312},lint
33
skipsdist = True
44

55
[testenv]

0 commit comments

Comments
 (0)