feat: split tests job into unit-tests and integration-tests

This commit is contained in:
Daniil Polyakov 2026-02-12 16:20:07 +03:00
parent 70bae9158c
commit 0d0bb87bf3

View File

@ -100,7 +100,7 @@ jobs:
RISC0_SKIP_BUILD: "1" RISC0_SKIP_BUILD: "1"
run: cargo clippy -p "*programs" -- -D warnings run: cargo clippy -p "*programs" -- -D warnings
tests: unit-tests:
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 60 timeout-minutes: 60
steps: steps:
@ -122,18 +122,39 @@ jobs:
- name: Install nextest - name: Install nextest
run: cargo install --locked cargo-nextest run: cargo install --locked cargo-nextest
- name: Free disk space - name: Run tests
run: | env:
sudo swapoff -a RISC0_DEV_MODE: "1"
sudo rm -f /swapfile RUST_LOG: "info"
sudo apt clean run: cargo nextest run --workspace --exclude integration_tests
df -h
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 - name: Run tests
env: env:
RISC0_DEV_MODE: "1" RISC0_DEV_MODE: "1"
RUST_LOG: "info" 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: valid-proof-test:
runs-on: ubuntu-latest runs-on: ubuntu-latest