Skip to content

Commit

Permalink
Add proptest to CI on 2^16 cases in release mode
Browse files Browse the repository at this point in the history
  • Loading branch information
rubdos committed Jul 7, 2024
1 parent 5be48f0 commit d2bef6d
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit d2bef6d

Please sign in to comment.