From d2bef6df1aed6880b1ad04d397799b3cfb7e0421 Mon Sep 17 00:00:00 2001 From: Ruben De Smet Date: Sun, 7 Jul 2024 14:02:43 +0200 Subject: [PATCH] Add proptest to CI on 2^16 cases in release mode --- .github/workflows/build.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 37d44d5..6b4eb6d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,7 +25,13 @@ jobs: toolchain: ["stable", "beta"] coverage: [false] tests: [true] + proptest_max: [false] include: + # We run the proptests with the stable toolchain on more iterations + - toolchain: "stable" + coverage: false + tests: true + proptest_max: true - toolchain: "nightly" coverage: true tests: true @@ -60,11 +66,20 @@ jobs: - name: Run tests uses: actions-rs/cargo@v1 - if: ${{ !matrix.coverage && matrix.tests }} + if: ${{ !matrix.coverage && matrix.tests && !matrix.proptest_max }} with: command: test args: --all-targets --no-fail-fast + - name: Run tests + uses: actions-rs/cargo@v1 + if: ${{ !matrix.coverage && matrix.tests && matrix.proptest_max }} + env: + PROPTEST_CASES: 65536 + with: + command: test + args: --all-targets --release --no-fail-fast + - name: Run tests uses: actions-rs/cargo@v1 if: ${{ matrix.coverage && matrix.tests }}