Skip to content

Commit

Permalink
ci: add packages and tests for Python 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
dvarrazzo committed Dec 17, 2022
1 parent ca52a38 commit e174a15
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-20.04, windows-latest, macos-latest]
pyver: [cp37, cp38, cp39, cp310]
pyver: [cp37, cp38, cp39, cp310, cp311]

steps:
- name: Checkout repos
uses: actions/checkout@v3

- name: Build wheels
uses: pypa/cibuildwheel@v2.8.1
uses: pypa/cibuildwheel@v2.11.1
env:
CIBW_BUILD: ${{matrix.pyver}}-*
CIBW_ARCHS_LINUX: auto
Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:
strategy:
fail-fast: false
matrix:
pyver: [cp37, cp38, cp39, cp310]
pyver: [cp37, cp38, cp39, cp310, cp311]
arch: [aarch64, ppc64le]

steps:
Expand All @@ -74,7 +74,7 @@ jobs:
uses: docker/setup-qemu-action@v2

- name: Build wheels
uses: pypa/cibuildwheel@v2.8.1
uses: pypa/cibuildwheel@v2.11.1
env:
CIBW_BUILD: ${{matrix.pyver}}-*
CIBW_ARCHS: ${{matrix.arch}}
Expand All @@ -99,7 +99,7 @@ jobs:
uses: actions/checkout@v3

- name: Build wheels
uses: pypa/cibuildwheel@v2.8.1
uses: pypa/cibuildwheel@v2.11.1
env:
CIBW_BUILD: pp*
CIBW_TEST_EXTRAS: test
Expand Down Expand Up @@ -133,7 +133,7 @@ jobs:
uses: docker/setup-qemu-action@v2

- name: Build wheels
uses: pypa/cibuildwheel@v2.8.1
uses: pypa/cibuildwheel@v2.11.1
env:
CIBW_BUILD: pp*

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "pypy-3.8"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "pypy-3.8"]

steps:
- name: Checkout repos
Expand All @@ -39,7 +39,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.7, 3.8, 3.9, "3.10"]
python-version: [3.7, 3.8, 3.9, "3.10", "3.11"]
architecture: ['x64', 'x86']

steps:
Expand All @@ -64,7 +64,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.7, 3.8, 3.9, "3.10"]
python-version: [3.7, 3.8, 3.9, "3.10", "3.11"]

steps:
- name: Checkout repos
Expand Down
2 changes: 1 addition & 1 deletion tests/setproctitle_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def test_runner():


@pytest.mark.skipif(
'sys.platform == "darwin" and os.environ.get("CIBW_TEST_COMMAND")',
'sys.platform == "darwin" and (os.environ.get("CIBW_TEST_COMMAND") or sys.version_info >= (3, 11))',
reason="f*cked up binary name",
)
def test_init_getproctitle():
Expand Down
5 changes: 4 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = 3.7, 3.8, 3.9, 3.10 pypy-3.8
envlist = 3.7, 3.8, 3.9, 3.10, 3.11, pypy-3.8

[testenv]
commands =
Expand All @@ -19,6 +19,9 @@ basepython = python3.9
[testenv:3.10]
basepython = python3.10

[testenv:3.11]
basepython = python3.11

[testenv:pypy-3.8]
basepython = pypy3.8

Expand Down

0 comments on commit e174a15

Please sign in to comment.