From 4402b4c54d40fdbc13d55673813c0761f4379726 Mon Sep 17 00:00:00 2001 From: Peter Gadfort Date: Thu, 15 Feb 2024 22:22:55 -0500 Subject: [PATCH] add basic CI test to run lumi testbenches --- .github/dependabot.yml | 11 +++++++++++ .github/workflows/ci.yml | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/ci.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..6c4b369 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,11 @@ +version: 2 +updates: + # Maintain dependencies for GitHub Actions + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + groups: + actions: + patterns: + - "*" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..a9bafad --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 }}