forked from VowpalWabbit/reinforcement_learning
-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (64 loc) · 1.88 KB
/
build_python_wheels.yml
File metadata and controls
66 lines (64 loc) · 1.88 KB
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
61
62
63
64
65
66
name: Linux / Python
on:
push:
branches:
- master
- 'releases/**'
pull_request:
branches:
- '*'
jobs:
build:
container:
image: vowpalwabbit/rlclientlib-manylinux2010-build:latest
runs-on: ubuntu-latest
strategy:
matrix:
config:
- { version: 3.6, base_path: /opt/python/cp36-cp36m/ }
- { version: 3.7, base_path: /opt/python/cp37-cp37m/ }
- { version: 3.8, base_path: /opt/python/cp38-cp38/ }
- { version: 3.9, base_path: /opt/python/cp39-cp39/ }
steps:
# v1 must be used because newer versions require a node.js version that will not run on this old image.
- uses: actions/checkout@v1
with:
submodules: recursive
- name: Build wheel
shell: bash
run: |
${{ matrix.config.base_path }}bin/pip wheel . -w wheel_output/ --verbose
auditwheel repair wheel_output/*whl -w audit_output/
- name: Upload built wheel
uses: actions/upload-artifact@v1
with:
name: wheel_${{ matrix.config.version }}
path: audit_output/
test:
needs: build
container:
image: python:${{ matrix.config.version }}
runs-on: ubuntu-latest
strategy:
matrix:
config:
- { version: 3.6 }
- { version: 3.7 }
- { version: 3.8 }
- { version: 3.9 }
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Download Wheel
uses: actions/download-artifact@v1
with:
name: wheel_${{ matrix.config.version }}
- name: Test wheel
shell: bash
run: |
export wheel_files=(wheel_${{ matrix.config.version }}/*)
export wheel_file="${wheel_files[0]}"
echo Installing ${wheel_file}...
pip install ${wheel_file}
python ./bindings/python/test/unit_test.py