Skip to content

Commit

Permalink
add basic CI test to run lumi testbenches
Browse files Browse the repository at this point in the history
  • Loading branch information
gadfort committed Feb 16, 2024
1 parent 24796e9 commit 4402b4c
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 2
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
groups:
actions:
patterns:
- "*"
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
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 }}

0 comments on commit 4402b4c

Please sign in to comment.