This repository has been archived by the owner on Nov 5, 2024. It is now read-only.
add xrt dep (and ELFIO...) #83
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, macos-12 ] | |
py_version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ] | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: Setup Cpp | |
uses: aminya/setup-cpp@v1 | |
with: | |
compiler: gcc | |
vcvarsall: ${{ contains(matrix.os, 'windows') }} | |
msvc: ${{ contains(matrix.os, 'windows') }} | |
cmake: true | |
ninja: true | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.py_version }} | |
- name: Install Protoc | |
id: install-protoc | |
uses: arduino/setup-protoc@v3 | |
- name: Checkout actions | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Install boost for XRT | |
uses: MarkusJx/install-boost@v2.4.5 | |
id: install-boost | |
with: | |
boost_version: 1.73.0 | |
- name: build wheel | |
env: | |
BOOST_ROOT: ${{ steps.install-boost.outputs.BOOST_ROOT }} | |
BOOST_VERSION: 1.73.0 | |
PROTOBUF_ROOT: ${{ steps.install-protoc.outputs.path }} | |
run: | | |
pip install -r requirements-dev.txt | |
pip wheel . -v -w wheelhouse --no-build-isolation | |
- 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: | | |
pushd examples | |
python e2e.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: Setup Cpp | |
uses: aminya/setup-cpp@v1 | |
with: | |
compiler: gcc | |
cmake: true | |
ninja: true | |
- name: Checkout actions | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
with: | |
platforms: aarch64 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.py_version }} | |
- name: Install Protoc | |
id: install-protoc | |
uses: arduino/setup-protoc@v3 | |
- name: Install boost for XRT | |
uses: MarkusJx/install-boost@v2.4.5 | |
id: install-boost | |
with: | |
boost_version: 1.73.0 | |
- name: build wheel | |
env: | |
BOOST_ROOT: ${{ steps.install-boost.outputs.BOOST_ROOT }} | |
BOOST_VERSION: 1.73.0 | |
PROTOBUF_ROOT: ${{ steps.install-protoc.outputs.path }} | |
run: | | |
pip install -r requirements-dev.txt | |
pip wheel . -v -w wheelhouse --no-build-isolation | |
- name: test | |
run: | | |
pushd wheelhouse | |
pip install xaiepy -f $PWD | |
pytest -s ../tests/*.py | |
popd | |
- name: Test mwe | |
shell: bash | |
run: | | |
pushd examples | |
python e2e.py | |
popd |