Skip to content

Commit 00c50fe

Browse files
committed
correct use of runner.os
1 parent 6c5162e commit 00c50fe

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ jobs:
142142
path: coverage
143143

144144
test-not-compiled:
145-
name: test py${{ matrix.python-version }} on ${{ runner.os }}
145+
name: test py${{ matrix.python-version }} on ${{ matrix.os }}
146146
strategy:
147147
fail-fast: false
148148
matrix:
@@ -299,7 +299,7 @@ jobs:
299299
run: make test-fastapi
300300

301301
build:
302-
name: build py3.${{ matrix.python-version }} on ${{ runner.os }}
302+
name: build py3.${{ matrix.python-version }} on ${{ matrix.platform || matrix.os }}
303303
needs: [lint, test-linux-compiled, test-not-compiled, test-old-mypy, test-fastapi]
304304
if: "success() && (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master')"
305305
strategy:
@@ -308,6 +308,8 @@ jobs:
308308
os: [ubuntu , macos , windows]
309309
python-version: ['7', '8', '9', '10']
310310
include:
311+
- os: ubuntu
312+
platform: linux
311313
- os: windows
312314
ls: dir
313315

@@ -329,13 +331,13 @@ jobs:
329331
env:
330332
SKIP_CYTHON: 1
331333

332-
- name: build ${{ runner.os }} binaries
334+
- name: build ${{ matrix.platform || matrix.os }} binaries
333335
run: cibuildwheel --output-dir dist
334336
env:
335337
PIP: 'pip'
336338
CIBW_BUILD: 'cp3${{ matrix.python-version }}-*'
337339
CIBW_SKIP: '*-win32'
338-
CIBW_PLATFORM: '${{ runner.os }}'
340+
CIBW_PLATFORM: '${{ matrix.platform || matrix.os }}'
339341
CIBW_BEFORE_BUILD: 'pip install -U cython'
340342
CIBW_TEST_REQUIRES: 'pytest==6.2.5 pytest-mock==3.6.1'
341343
CIBW_TEST_COMMAND: 'pytest {project}/tests'

0 commit comments

Comments
 (0)