Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

add xrt dep (and ELFIO...) #71

add xrt dep (and ELFIO...)

add xrt dep (and ELFIO...) #71

Workflow file for this run

name: Tests
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
types: [assigned, opened, synchronize, reopened]
jobs:
test-x86:
continue-on-error: true
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: 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: libdrm
if: ${{ contains(matrix.os, 'ubuntu') }}
run: |
sudo apt install -y libdrm-dev
- name: build wheel
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:
continue-on-error: true
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 boost for XRT
uses: MarkusJx/install-boost@v2.4.5
id: install-boost
with:
boost_version: 1.73.0
- name: build wheel
run: |
sudo apt install -y libdrm-dev
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