-
Notifications
You must be signed in to change notification settings - Fork 42
60 lines (47 loc) · 1.4 KB
/
wheel_linux_x86_64.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Wheel::Linux::x86_64
on:
release:
push:
branches:
- master
pull_request:
env:
CIBW_BUILD: 'cp37-* cp38-* cp39-*'
# Python build settings
CIBW_BEFORE_BUILD: |
pip install pybind11
# Testing of built wheels
CIBW_TEST_REQUIRES: numpy==1.19.5 scipy pytest pytest-cov pytest-mock flaky
CIBW_TEST_COMMAND: |
pl-device-test --device=lightning.qubit --skip-ops -x --tb=short --no-flaky-report
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
jobs:
linux-wheels-x86-64:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
arch: [x86_64]
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
name: Install Python
with:
python-version: '3.7'
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==1.12.0
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_ARCHS_LINUX: ${{matrix.arch}}
- uses: actions/upload-artifact@v2
if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master' }}
with:
name: ${{ runner.os }}-wheels.zip
path: ./wheelhouse/*.whl