From d9f901e50b50908c7668dd9ada6ec0819abf0575 Mon Sep 17 00:00:00 2001 From: Rice Shelley Date: Thu, 2 Jul 2026 12:33:22 -0400 Subject: [PATCH] Added nightly run --- .github/workflows/nightly.yml | 62 +++++++++++++++++++++++++++++++++++ README.md | 2 ++ 2 files changed, 64 insertions(+) create mode 100644 .github/workflows/nightly.yml diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml new file mode 100644 index 0000000..4b79973 --- /dev/null +++ b/.github/workflows/nightly.yml @@ -0,0 +1,62 @@ +name: Nightly Regression +on: + schedule: + - cron: "0 8 * * *" + workflow_dispatch: + inputs: + scaler: + description: "RAND_TEST_LEN_SCALER (random test length multiplier)" + type: number + default: 10 + +env: + RAND_TEST_LEN_SCALER: ${{ github.event.inputs.scaler || 10 }} + +jobs: + cocotb_nightly: + name: "Cocotb Nightly Regression" + # Don't run on forks + if: github.repository == 'zeroasiccorp/umi' + runs-on: ubuntu-latest + container: + image: ghcr.io/siliconcompiler/sc_runner:latest + timeout-minutes: 180 + + steps: + - name: Checkout repository + uses: actions/checkout@v6 + with: + fetch-depth: 0 + + - name: pytest + run: | + git config --global --add safe.directory "$GITHUB_WORKSPACE" + python3 -m venv venv + . venv/bin/activate + python3 -m pip install --upgrade pip + python3 -m pip install -e .[test] + pytest -m "cocotb" --verbose --durations=0 + + switchboard_nightly: + name: "Switchboard Nightly Regression" + # Don't run on forks + if: github.repository == 'zeroasiccorp/umi' + runs-on: ubuntu-latest + container: + image: ghcr.io/zeroasiccorp/sbtest:latest + timeout-minutes: 90 + + steps: + - name: Checkout repository + uses: actions/checkout@v6 + with: + fetch-depth: 0 + + - name: pytest + run: | + git config --global --add safe.directory "$GITHUB_WORKSPACE" + python3 -m venv venv + . venv/bin/activate + python3 -m pip install --upgrade pip + python3 -m pip install -e .[test] + pytest -m "switchboard" --verbose --durations=0 diff --git a/README.md b/README.md index 3767fce..f378d02 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Universal Memory Interface (UMI) +[![Nightly Regression](https://github.com/zeroasiccorp/umi/actions/workflows/nightly.yml/badge.svg?event=schedule)](https://github.com/zeroasiccorp/umi/actions/workflows/nightly.yml) + ## 1. Introduction ### 1.1 Design Philosophy