From a0f51523ceff2837a70a09d5ba9f477e7da77fae Mon Sep 17 00:00:00 2001 From: Max Lv Date: Sat, 7 Feb 2026 17:03:23 +0800 Subject: [PATCH] CI: add unit test and stress test steps to GitHub Actions Split the Test step into separate "Unit tests" (ctest) and "Stress test" (stress_test.py with 10MB transfer across all AEAD ciphers) steps for better visibility. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/build.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 726f8abf..d671e3e9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,7 +34,11 @@ jobs: cmake .. -DCMAKE_BUILD_TYPE=Release -DWITH_STATIC=OFF make -j$(nproc 2>/dev/null || sysctl -n hw.ncpu) - - name: Test + - name: Unit tests run: | cd build ctest --output-on-failure + + - name: Stress test + run: | + python3 tests/stress_test.py --bin build/shared/bin/ --size 10