Skip to content

Commit 4a4d625

Browse files
authored
Update actions, test and release on Python 3.11 (#92)
1 parent 7c56ee3 commit 4a4d625

File tree

2 files changed

+29
-13
lines changed

2 files changed

+29
-13
lines changed

.github/workflows/release.yml

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ jobs:
4747
runs-on: ubuntu-latest
4848

4949
steps:
50-
- uses: actions/checkout@v2
50+
- uses: actions/checkout@v3
5151
with:
5252
fetch-depth: 50
5353
submodules: true
5454

55-
- uses: actions/setup-python@v2
55+
- uses: actions/setup-python@v4
5656

5757
- name: Build source distribution
5858
run: |
@@ -70,31 +70,47 @@ jobs:
7070
strategy:
7171
matrix:
7272
os: [ubuntu-latest, macos-latest, windows-latest]
73-
cibw_arch: [auto]
74-
include:
73+
cibw_arch: ["auto64", "aarch64", "universal2"]
74+
cibw_python:
75+
- "cp36-*"
76+
- "cp37-*"
77+
- "cp38-*"
78+
- "cp39-*"
79+
- "cp310-*"
80+
- "cp311-*"
81+
exclude:
7582
- os: ubuntu-latest
83+
cibw_arch: universal2
84+
- os: macos-latest
7685
cibw_arch: aarch64
7786
- os: macos-latest
87+
cibw_python: "cp36-*"
88+
cibw_arch: universal2
89+
- os: macos-latest
90+
cibw_python: "cp37-*"
91+
cibw_arch: universal2
92+
- os: windows-latest
7893
cibw_arch: universal2
94+
- os: windows-latest
95+
cibw_arch: aarch64
7996

8097
steps:
81-
- uses: actions/checkout@v2
98+
- uses: actions/checkout@v3
8299
with:
83100
fetch-depth: 50
84101
submodules: true
85102

86103
- name: Set up QEMU
87104
if: matrix.os == 'ubuntu-latest' && matrix.cibw_arch == 'aarch64'
88-
uses: docker/setup-qemu-action@v1
105+
uses: docker/setup-qemu-action@v2
89106
with:
90107
platforms: arm64
91108

92-
- uses: pypa/cibuildwheel@v2.3.1
109+
- uses: pypa/cibuildwheel@v2.9.0
93110
env:
94111
CIBW_BUILD_VERBOSITY: 1
95-
CIBW_BUILD: "cp36-* cp37-* cp38-* cp39-* cp310-*"
112+
CIBW_BUILD: ${{ matrix.cibw_python }}
96113
CIBW_ARCHS: ${{ matrix.cibw_arch }}
97-
CIBW_SKIP: "pp*"
98114
CIBW_TEST_EXTRAS: "test"
99115
CIBW_TEST_COMMAND: "cd .. && python {project}/tests/__init__.py"
100116
CIBW_TEST_COMMAND_WINDOWS: "cd .. && python {project}\\tests\\__init__.py"
@@ -111,7 +127,7 @@ jobs:
111127
runs-on: ubuntu-latest
112128

113129
steps:
114-
- uses: actions/checkout@v2
130+
- uses: actions/checkout@v3
115131
with:
116132
fetch-depth: 5
117133
submodules: false

.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ${{ matrix.os }}
1515
strategy:
1616
matrix:
17-
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
17+
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11.0-rc.2"]
1818
os: [windows-latest, ubuntu-latest, macos-latest]
1919
arch: [x64, x86]
2020
exclude:
@@ -25,7 +25,7 @@ jobs:
2525
arch: x86
2626

2727
steps:
28-
- uses: actions/checkout@v2
28+
- uses: actions/checkout@v3
2929
with:
3030
fetch-depth: 50
3131
submodules: true
@@ -41,7 +41,7 @@ jobs:
4141
__version__\s*=\s*(?:['"])([[:PEP440:]])(?:['"])
4242
4343
- name: Set up Python ${{ matrix.python-version }}
44-
uses: actions/setup-python@v2
44+
uses: actions/setup-python@v4
4545
if: steps.release.outputs.version == 0
4646
env:
4747
PIP_DISABLE_PIP_VERSION_CHECK: 1

0 commit comments

Comments
 (0)