Skip to content

Commit 4fddc30

Browse files
committed
Update CI workflows, add Python 3.11 support
1 parent 6b27e45 commit 4fddc30

File tree

4 files changed

+18
-14
lines changed

4 files changed

+18
-14
lines changed

.github/workflows/python-ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,20 @@ jobs:
88

99
strategy:
1010
matrix:
11-
python-version: ["3.7", "3.8", "3.9", "3.10"]
11+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
1212

1313
name: "Build and test"
1414
runs-on: ubuntu-latest
1515

1616
steps:
1717

1818
- name: "Checkout the repository"
19-
uses: actions/checkout@v2
19+
uses: actions/checkout@v3
2020
with:
2121
submodules: true
2222

2323
- name: "Set up Python ${{ matrix.python-version }}"
24-
uses: actions/setup-python@v2
24+
uses: actions/setup-python@v4
2525
with:
2626
python-version: ${{ matrix.python-version }}
2727

.github/workflows/python-packages.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,21 @@ jobs:
1414
steps:
1515

1616
- name: "Checkout the repository"
17-
uses: actions/checkout@v2
17+
uses: actions/checkout@v3
1818
with:
1919
submodules: true
2020

2121
- name: "Set up Python"
22-
uses: actions/setup-python@v2
22+
uses: actions/setup-python@v4
2323
with:
24-
python-version: "3.10"
24+
python-version: "3.11"
2525

2626
- name: "Build source distribution"
2727
run: |
2828
python setup.py sdist
2929
3030
- name: "Upload artifacts"
31-
uses: actions/upload-artifact@v2
31+
uses: actions/upload-artifact@v3
3232
with:
3333
name: sdist
3434
path: dist/
@@ -42,25 +42,25 @@ jobs:
4242
strategy:
4343
matrix:
4444
os:
45-
- ubuntu-20.04
45+
- ubuntu-22.04
4646
- windows-2019
47-
- macos-10.15
47+
- macos-11
4848

4949
steps:
5050

5151
- name: "Checkout the repository"
52-
uses: actions/checkout@v2
52+
uses: actions/checkout@v3
5353
with:
5454
submodules: true
5555

5656
- name: "Build wheels"
57-
uses: pypa/cibuildwheel@v2.6.0
57+
uses: pypa/cibuildwheel@v2.11.2
5858
env:
5959
CIBW_ARCHS_MACOS: x86_64 arm64 universal2
6060
PIP_USE_PEP517: 1
6161

6262
- name: "Upload artifacts"
63-
uses: actions/upload-artifact@v2
63+
uses: actions/upload-artifact@v3
6464
with:
6565
name: wheels
6666
path: ./wheelhouse/*.whl
@@ -77,7 +77,7 @@ jobs:
7777
steps:
7878

7979
- name: "Download artifacts"
80-
uses: actions/download-artifact@v2
80+
uses: actions/download-artifact@v3
8181

8282
- name: "Move packages to the dist/ folder"
8383
run: |

README.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,10 @@ Read its `license terms <https://github.com/ImageOptim/libimagequant#license>`_
134134
Changelog
135135
---------
136136

137+
* **[NEXT]** (changes on ``master`` that have not been released yet):
138+
139+
* Added Python 3.11 support
140+
137141
* **v1.0.3:**
138142

139143
* ``arm64`` and ``universal2`` wheels for macOS M1

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def lint(session):
2121
)
2222

2323

24-
@nox.session(python=["3.7", "3.8", "3.9", "3.10"], reuse_venv=True)
24+
@nox.session(python=["3.7", "3.8", "3.9", "3.10", "3.11"], reuse_venv=True)
2525
def test(session):
2626
session.install("pytest")
2727
session.install(".[pil]")

0 commit comments

Comments
 (0)