Add a failure example build
This commit is contained in:
@@ -4,11 +4,11 @@ on: [push, pull_request]
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_wheels:
|
build_wheels:
|
||||||
name: Build wheels on ${{ matrix.os }}
|
name: Build wheels [${{ matrix.result }}]
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ubuntu-18.04
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-18.04]
|
result: [success, failure]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@@ -27,6 +27,15 @@ jobs:
|
|||||||
python -m test.test_projects test.test_0_basic.basic_project sample_project
|
python -m test.test_projects test.test_0_basic.basic_project sample_project
|
||||||
|
|
||||||
- name: Build wheels
|
- name: Build wheels
|
||||||
|
if: matrix.result == 'success'
|
||||||
run: |
|
run: |
|
||||||
cd sample_project
|
cd sample_project
|
||||||
python -m cibuildwheel --output-dir wheelhouse
|
python -m cibuildwheel --output-dir wheelhouse
|
||||||
|
|
||||||
|
- name: Build wheels [expected failure]
|
||||||
|
if: matrix.result == 'failure'
|
||||||
|
run: |
|
||||||
|
cd sample_project
|
||||||
|
# sabotage the project to cause an error
|
||||||
|
echo '>' >> setup.py
|
||||||
|
python -m cibuildwheel --output-dir wheelhouse || true
|
||||||
|
|||||||
Reference in New Issue
Block a user