Skip to content

Commit 12f6fb4

Browse files
committed
ci: cibuildwheel action and bump to 1.7.3
1 parent ca298e7 commit 12f6fb4

File tree

2 files changed

+15
-27
lines changed

2 files changed

+15
-27
lines changed

.github/workflows/tests.yml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ jobs:
5858
with:
5959
submodules: true
6060

61-
# TODO: unpin after 2.2.0 gets fixed. PyPy is broken in 2.2.0.
62-
- uses: actions/[email protected]
61+
- uses: actions/setup-python@v2
6362
with:
6463
python-version: ${{ matrix.python-version }}
6564

@@ -81,29 +80,28 @@ jobs:
8180
runs-on: ${{ matrix.os }}
8281
strategy:
8382
matrix:
84-
os: [ubuntu-18.04, windows-latest, macos-latest]
83+
os: [ubuntu-latest, windows-latest, macos-latest]
8584

8685
steps:
8786
- uses: actions/checkout@v1
8887
with:
8988
submodules: true
9089

91-
- name: Setup Python 3.7
92-
uses: actions/setup-python@v2
93-
with:
94-
python-version: '3.7'
95-
96-
- name: Install cibuildwheel
97-
run: python -m pip install cibuildwheel==1.5.5 twine
90+
- uses: actions/setup-python@v2
9891

99-
- name: Build wheel
100-
run: python -m cibuildwheel --output-dir wheelhouse
92+
- uses: joerick/[email protected]
10193
env:
10294
CIBW_BUILD: cp38-win_amd64 cp27-manylinux_i686 cp37-macosx_x86_64
10395
CIBW_TEST_EXTRAS: test
10496
CIBW_TEST_COMMAND: pytest {project}/tests
10597
CIBW_BUILD_VERBOSITY: 1
10698

99+
- uses: actions/upload-artifact@v2
100+
with:
101+
path: wheelhouse/*
102+
107103
- name: Check wheels
108-
run: twine check wheelhouse/*
104+
run: |
105+
python -m pip install twine
106+
twine check wheelhouse/*
109107
shell: bash

.github/workflows/wheels.yml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,7 @@ jobs:
7272

7373
- uses: actions/setup-python@v2
7474

75-
- name: Install cibuildwheel
76-
run: python -m pip install cibuildwheel==1.7.1
77-
78-
- name: Build wheel
79-
run: python -m cibuildwheel --output-dir wheelhouse
75+
- uses: joerick/[email protected]
8076
env:
8177
CIBW_SKIP: cp27-win* pp*
8278
CIBW_MANYLINUX_I686_IMAGE: ${{ matrix.CIBW_MANYLINUX_I686_IMAGE }}
@@ -113,11 +109,7 @@ jobs:
113109

114110
- uses: actions/setup-python@v2
115111

116-
- name: Install cibuildwheel
117-
run: python -m pip install cibuildwheel==1.7.1
118-
119-
- name: Build wheel
120-
run: python -m cibuildwheel --output-dir wheelhouse
112+
- uses: joerick/[email protected]
121113
env:
122114
CIBW_SKIP: cp*
123115

@@ -147,13 +139,11 @@ jobs:
147139

148140
- uses: actions/setup-python@v2
149141

150-
- name: Install cibuildwheel
151-
run: python -m pip install cibuildwheel==1.7.1
152142

153143
- uses: ilammy/msvc-dev-cmd@v1
154144

155145
- name: Build 64-bit wheel
156-
run: python -m cibuildwheel --output-dir wheelhouse
146+
uses: joerick/cibuildwheel@v1.7.3
157147
env:
158148
CIBW_BUILD: cp27-win_amd64
159149
DISTUTILS_USE_SDK: 1
@@ -164,7 +154,7 @@ jobs:
164154
arch: x86
165155

166156
- name: Build 32-bit wheel
167-
run: python -m cibuildwheel --output-dir wheelhouse
157+
uses: joerick/cibuildwheel@v1.7.3
168158
env:
169159
CIBW_BUILD: cp27-win32 pp27-win32
170160
DISTUTILS_USE_SDK: 1

0 commit comments

Comments
 (0)