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 78e93bc
Show file tree
Hide file tree
Showing 2 changed files with 50 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:
- "*"
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
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
. .venv/bin/activate
python3 -m pip --upgrade pip
python3 -m pip install switchboard-hw
- name: Run {{ matrix.testbench }}
run: |
. .venv/bin/activate
cd $(dirname "{{ matrix.testbench }}")
./$(basename "{{ matrix.testbench }}")

0 comments on commit 78e93bc

Please sign in to comment.