Skip to content

Commit b42f460

Browse files
committed
Configure MacOS builds
1 parent 55890db commit b42f460

File tree

1 file changed

+27
-23
lines changed

1 file changed

+27
-23
lines changed

.github/workflows/integration.yml

Lines changed: 27 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -156,34 +156,38 @@ jobs:
156156
# name: dist-linux-3.8
157157
# path: dist
158158

159-
# build-macos:
160-
# needs: tests
161-
# runs-on: macos-latest
162-
# strategy:
163-
# max-parallel: 4
164-
# matrix:
165-
# python-version: [3.5, 3.6, 3.7, 3.8]
159+
build-macos:
160+
# needs: tests
161+
runs-on: macos-latest
162+
strategy:
163+
max-parallel: 4
164+
matrix:
165+
config:
166+
- {python-version: 3.5, toxenv: py35-cython}
167+
- {python-version: 3.6, toxenv: py36-cython}
168+
- {python-version: 3.7, toxenv: py37-cython}
169+
- {python-version: 3.8, toxenv: py38-cython}
166170

167-
# steps:
168-
# - uses: actions/checkout@v2
171+
steps:
172+
- uses: actions/checkout@v2
169173

170-
# - name: Set up Python ${{ matrix.python-version }} x64
171-
# uses: actions/setup-python@v2
172-
# with:
173-
# python-version: ${{ matrix.python-version }}
174-
# architecture: x64
174+
- name: Set up Python ${{ matrix.config.python-version }} x64
175+
uses: actions/setup-python@v2
176+
with:
177+
python-version: ${{ matrix.config.python-version }}
178+
architecture: x64
175179

176-
# - name: Install Python package dependencies
177-
# run: pip install cython wheel
180+
- name: Install Python package dependencies
181+
run: pip install tox tox-wheel
178182

179-
# - name: Build binary wheel
180-
# run: python setup.py bdist_wheel
183+
- name: Build binary wheel
184+
run: python -m tox -e ${{ matrix.config.toxenv }} --wheel
181185

182-
# - name: Archive dist artifacts
183-
# uses: actions/upload-artifact@v2
184-
# with:
185-
# name: dist-macos-${{ matrix.python-version }}
186-
# path: dist
186+
- name: Archive dist artifacts
187+
uses: actions/upload-artifact@v2
188+
with:
189+
name: dist-macos-${{ matrix.config.python-version }}
190+
path: .tox/dist
187191

188192
# build-windows:
189193
# needs: tests

0 commit comments

Comments
 (0)