From 0d0bb87bf30af2a5771291abe3dc37c63a9d1d9a Mon Sep 17 00:00:00 2001 From: Daniil Polyakov Date: Thu, 12 Feb 2026 16:20:07 +0300 Subject: [PATCH] feat: split `tests` job into `unit-tests` and `integration-tests` --- .github/workflows/ci.yml | 37 +++++++++++++++++++++++++++++-------- 1 file changed, 29 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d300068f..ce9903b5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -100,7 +100,7 @@ jobs: RISC0_SKIP_BUILD: "1" run: cargo clippy -p "*programs" -- -D warnings - tests: + unit-tests: runs-on: ubuntu-latest timeout-minutes: 60 steps: @@ -122,18 +122,39 @@ jobs: - name: Install nextest run: cargo install --locked cargo-nextest - - name: Free disk space - run: | - sudo swapoff -a - sudo rm -f /swapfile - sudo apt clean - df -h + - name: Run tests + env: + RISC0_DEV_MODE: "1" + RUST_LOG: "info" + run: cargo nextest run --workspace --exclude integration_tests + + integration-tests: + runs-on: ubuntu-latest + timeout-minutes: 60 + steps: + - uses: actions/checkout@v5 + with: + ref: ${{ github.head_ref }} + + - uses: ./.github/actions/install-system-deps + + - uses: ./.github/actions/install-risc0 + + - uses: ./.github/actions/install-logos-blockchain-circuits + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + + - name: Install active toolchain + run: rustup install + + - name: Install nextest + run: cargo install --locked cargo-nextest - name: Run tests env: RISC0_DEV_MODE: "1" RUST_LOG: "info" - run: cargo nextest run --no-fail-fast -- --skip tps_test + run: cargo nextest run -p integration_tests -- --skip tps_test valid-proof-test: runs-on: ubuntu-latest