This repository has been archived by the owner on Nov 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
138 lines (109 loc) · 3.03 KB
/
tests.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
name: Tests
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
types: [assigned, opened, synchronize, reopened]
#concurrency:
# group: test-${{ github.event.number || github.sha }}
# cancel-in-progress: true
jobs:
test-x86:
runs-on: ${{ matrix.OS }}
strategy:
fail-fast: false
matrix:
OS: [ ubuntu-20.04, windows-2019 ]
PY_VERSION: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
defaults:
run:
shell: bash
steps:
- name: Checkout actions
uses: actions/checkout@v3
with:
submodules: true
- name: Get Submodules
run: |
git submodule update --init --recursive
- uses: ./.github/workflows/base
id: base
with:
OS: ${{ matrix.OS }}
ARCH: ${{ matrix.ARCH }}
PY_VERSION: ${{ matrix.PY_VERSION }}
- name: build wheel
env:
BOOST_ROOT: ${{ steps.base.outputs.BOOST_ROOT }}
BOOST_VERSION: ${{ steps.base.outputs.BOOST_VERSION }}
run: |
CIBW_BUILD=${{ matrix.PY_VERSION }}
export CIBW_BUILD="cp${CIBW_BUILD//./}-*"
cibuildwheel --output-dir wheelhouse
- name: test
run: |
pushd wheelhouse
pip install xaiepy -f $PWD
if [ ${{ matrix.OS }} == 'windows-2019' ]; then
pytest -s ../tests
else
pytest --capture=tee-sys ../tests
fi
popd
# - name: Test mwe
# shell: bash
# run: |
#
# export LD_LIBRARY_PATH=/opt/xilinx/xrt/lib
# pushd examples
# python cdo.py
# popd
test-linux-aarch64:
runs-on: ${{ matrix.OS }}
strategy:
fail-fast: false
matrix:
OS: [ ubuntu-20.04 ]
PY_VERSION: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
steps:
- name: Checkout actions
uses: actions/checkout@v3
with:
submodules: true
- name: Get Submodules
run: |
git submodule update --init --recursive
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: aarch64
- uses: ./.github/workflows/base
id: base
with:
OS: ${{ matrix.OS }}
ARCH: ${{ matrix.ARCH }}
PY_VERSION: ${{ matrix.PY_VERSION }}
- name: build wheel
env:
BOOST_ROOT: ${{ steps.base.outputs.BOOST_ROOT }}
BOOST_VERSION: ${{ steps.base.outputs.BOOST_VERSION }}
run: |
CIBW_BUILD=${{ matrix.PY_VERSION }}
export CIBW_BUILD="cp${CIBW_BUILD//./}-*"
cibuildwheel --output-dir wheelhouse
- name: test
run: |
pushd wheelhouse
pip install xaiepy -f $PWD
pytest -s ../tests/*.py
popd
# - name: Test mwe
# shell: bash
# run: |
#
# export LD_LIBRARY_PATH=/opt/xilinx/xrt/lib
# pushd examples
# python cdo.py
# popd