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 }}