Repository navigation
Quantifier and Heap Reasoning Improvements (#3961) #5582
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Tests | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: | |
| - "main" | |
| - "KeY-*" | |
| - "releases/*" | |
| merge_group: | |
| permissions: | |
| contents: write | |
| issues: write | |
| pull-requests: write | |
| id-token: write | |
| checks: write | |
| jobs: | |
| unit-tests: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ ubuntu-latest, windows-latest ] | |
| java: [ 21 ] | |
| modules: [ | |
| keyext.exploration, keyext.slicing, key.ncore, key.ui, key.core, | |
| key.core.testgen, keyext.isabelletranslation, keyext.ui.testgen, key.ncore.calculus, | |
| key.util, key.core.example, keyext.caching, key.core.wd, key.core.infflow, | |
| keyext.proofmanagement] | |
| continue-on-error: true | |
| runs-on: ${{ matrix.os }} | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Setup SMT solvers | |
| uses: keyproject/setup-smt@v0 | |
| with: | |
| # Pin Z3 so CI is reproducible: an unpinned solver makes the SMT-dependent tests | |
| # (e.g. key.core.testgen) a moving target that fails intermittently when the action's | |
| # default version changes. | |
| z3Version: 4.13.0 | |
| - name: z3 version | |
| run: z3 --version | |
| - name: cvc5 version | |
| run: cvc5 --version | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v6.0.0 | |
| with: | |
| java-version: ${{ matrix.java }} | |
| distribution: 'corretto' | |
| cache: 'gradle' | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v6 | |
| - name: Test with Gradle | |
| run: ./gradlew --continue :${{ matrix.modules }}:test | |
| - name: Upload test results | |
| uses: actions/upload-artifact@v7 | |
| if: success() || failure() | |
| with: | |
| name: test-results-${{ matrix.os }}-${{ matrix.modules }} | |
| path: | | |
| **/build/test-results/*/*.xml | |
| **/build/reports/ | |
| !**/jacocoTestReport.xml | |
| integration-tests: | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| # The multi-core prover gates (testMt*) must be able to fail CI; the long-running proof | |
| # regression legs keep their historical advisory (continue-on-error) status. fail-fast is | |
| # off, so a red MT leg never cancels the sibling legs either way. | |
| continue-on-error: ${{ !startsWith(matrix.test, 'testMt') }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| test: [ testProveRules, testRunAllFunProofs, testRunAllInfProofs, testRunAllWdProofs, testMtStress, testMt2w, testMt4w ] | |
| os: [ ubuntu-latest ] | |
| java: [ 21 ] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v6.0.0 | |
| with: | |
| java-version: ${{ matrix.java }} | |
| distribution: 'corretto' | |
| cache: 'gradle' | |
| - name: Setup SMT solvers | |
| uses: keyproject/setup-smt@v0 | |
| with: | |
| z3Version: 4.13.0 | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v6 | |
| - name: "Running tests: ${{ matrix.test }}" | |
| run: ./gradlew --continue ${{ matrix.test }} | |
| - name: Upload test results | |
| uses: actions/upload-artifact@v7 | |
| if: success() || failure() # run this step even if previous step failed | |
| with: | |
| name: test-results-${{ matrix.test }} | |
| path: | | |
| key.core/proofs/** | |
| **/build/test-results/*/*.xml | |
| key.core/build/reports/runallproofs/* | |
| **/build/reports/ |