Skip to content

Commit

Permalink
Update CI workflows, add Python 3.11 support
Browse files Browse the repository at this point in the history
  • Loading branch information
flozz committed Oct 28, 2022
1 parent 774087a commit ecfde40
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 18 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ jobs:
steps:

- name: "Checkout the repository"
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
persist-credentials: false
submodules: true

- name: "Set up Python"
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.11"

- name: "Install Python dependencies"
run: |
Expand All @@ -36,8 +36,7 @@ jobs:
python setup.py build_sphinx
- name: "Deploy Github Pages"
uses: JamesIves/github-pages-deploy-action@3.7.1
uses: JamesIves/github-pages-deploy-action@v4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: build/sphinx/html/
6 changes: 3 additions & 3 deletions .github/workflows/python-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ jobs:

strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]

name: "Build and test Pyguetzli"
runs-on: ubuntu-latest

steps:

- name: "Checkout the repository"
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: "Set up Python ${{ matrix.python-version }}"
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/python-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@ jobs:
steps:

- name: "Checkout the repository"
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
submodules: true

- name: "Set up Python"
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: "3.10"
python-version: "3.11"

- name: "Build source distribution"
run: |
python setup.py sdist
- name: "Upload artifacts"
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: sdist
path: dist/
Expand All @@ -50,19 +50,19 @@ jobs:
steps:

- name: "Checkout the repository"
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
submodules: true

- name: "Build wheels"
uses: pypa/cibuildwheel@v2.6.0
uses: pypa/cibuildwheel@v2.11.2
env:
CIBW_ARCHS_MACOS: x86_64 arm64 universal2
PIP_USE_PEP517: 1
CIBW_BEFORE_BUILD_MACOS: "find . -name '*.a' -delete"

- name: "Upload artifacts"
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: wheels
path: ./wheelhouse/*.whl
Expand All @@ -79,7 +79,7 @@ jobs:
steps:

- name: "Download artifacts"
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3

- name: "Move packages to the dist/ folder"
run: |
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Changelog

* **[NEXT]** (changes on ``master`` but not released yet):

* Nothing yet :)
* Python 3.11 support

* **1.0.12:**

Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def lint(session):
session.run("flake8", "pyguetzli", "test", "noxfile.py")


@nox.session(python=["3.7", "3.8", "3.9", "3.10"], reuse_venv=True)
@nox.session(python=["3.7", "3.8", "3.9", "3.10", "3.11"], reuse_venv=True)
def test(session):
session.install("pytest")
session.install(".[PIL]")
Expand Down

0 comments on commit ecfde40

Please sign in to comment.