Skip to content

Commit

Permalink
Add support to build on Python 3.11, drop 3.6
Browse files Browse the repository at this point in the history
Reference: inveniosoftware-contrib#81

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
  • Loading branch information
pombredanne committed Jan 11, 2023
1 parent fc9e3c8 commit 9f175ab
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions .github/workflows/test-and-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [macos-10.15, windows-2019]
os: [macos-latest, windows-latest]
arch: [auto64]
build: ["cp{36,37,38,39}-*"]
build: ["cp{37,38,39}-*"]

include:
- os: ubuntu-latest
arch: auto
type: manylinux1
build: "cp{36,37,38,39}-*"
build: "cp{37,38,39}-*"
CIBW_MANYLINUX_X86_64_IMAGE: manylinux1

- os: ubuntu-latest
Expand All @@ -53,13 +53,20 @@ jobs:
build: "cp310-*"
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2010

# the manylinux2014 image also contains python 3.11 and pypy3.9
- os: ubuntu-latest
arch: auto
type: manylinux2014
build: "cp311-*"
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014

- os: macos-latest
arch: universal2
build: "cp{36,37,38,39,310}-*"
build: "cp{37,38,39,310,311}-*"

- os: windows-latest
arch: auto64
build: "cp{36,37,38,39,310}-*"
build: "cp{37,38,39,310,311}-*"

steps:
- uses: actions/checkout@v2
Expand All @@ -68,11 +75,10 @@ jobs:
uses: pypa/cibuildwheel@v2.3.1
env:
CIBW_BUILD: ${{ matrix.build }}
CIBW_MANYLINUX_I686_IMAGE: ${{ matrix.CIBW_MANYLINUX_I686_IMAGE }}
CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.CIBW_MANYLINUX_X86_64_IMAGE }}
CIBW_ARCHS: ${{ matrix.arch }}
CIBW_TEST_REQUIRES: pytest pytest-xdist
CIBW_TEST_COMMAND: pytest {package}/tests -n6
CIBW_TEST_COMMAND: pytest {package}/tests -n4
# Skip PyPy wheels
CIBW_SKIP: "pp*"

Expand Down Expand Up @@ -112,8 +118,8 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-18.04, ubuntu-20.04, macos-10.15, macos-11, windows-2019, windows-2022]
python: ["3.6", "3.7", "3.8", "3.9", "3.10"]
os: [ubuntu-18.04, ubuntu-20.04, ubuntu-22.04, macos-10.15, macos-11, macos-12, windows-2019, windows-2022]
python: [3.7", "3.8", "3.9", "3.10", "3.11"]

steps:
- name: Set up Python
Expand All @@ -127,4 +133,4 @@ jobs:
run: pip install -e .[tests]

- name: Run tests
run: pytest -vs tests -n6
run: pytest -vs tests -n4

0 comments on commit 9f175ab

Please sign in to comment.