add basic CI test to run lumi testbenches #2
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: Testbench CI | |
on: | |
push: | |
# Runs on all PRs | |
pull_request: | |
# Manual Dispatch | |
workflow_dispatch: | |
jobs: | |
testbench: | |
strategy: | |
fail-fast: false | |
matrix: | |
testbench: [lumi/testbench/test_lumi.py, lumi/testbench/test_lumi_rnd.py] | |
timeout-minutes: 30 | |
continue-on-error: true | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/zeroasiccorp/sbtest:latest | |
steps: | |
- name: Check out UMI | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Install requirements | |
run: | | |
python3 -m venv .venv | |
source .venv/bin/activate | |
python3 -m pip --upgrade pip | |
python3 -m pip install switchboard-hw | |
- name: Run {{ matrix.testbench }} | |
run: | | |
source .venv/bin/activate | |
./{{ matrix.testbench }} |