Skip to content

Commit

Permalink
Merge branch 'main' into romac/driver-proposals
Browse files Browse the repository at this point in the history
  • Loading branch information
romac committed Dec 4, 2023
2 parents 97cbecc + a73929e commit 8a83223
Show file tree
Hide file tree
Showing 51 changed files with 1,452 additions and 1,340 deletions.
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "cargo"
directory: "/Code"
schedule:
interval: "weekly"
40 changes: 39 additions & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ on:

jobs:
coverage:
name: Integration
runs-on: ubuntu-latest
defaults:
run:
Expand All @@ -38,12 +39,49 @@ jobs:
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Generate code coverage
run: cargo llvm-cov nextest --all-features --workspace --lcov --output-path lcov.info
run: cargo llvm-cov nextest --workspace --exclude malachite-itf --all-features --lcov --output-path lcov.info
- name: Generate text report
run: cargo llvm-cov report
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: Code/lcov.info
flags: integration
fail_ci_if_error: true

mbt-coverage:
name: MBT
runs-on: ubuntu-latest
defaults:
run:
working-directory: Code
env:
CARGO_TERM_COLOR: always
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: "18"
- run: npm install -g @informalsystems/quint
- name: Setup Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly
components: llvm-tools-preview
- name: Install cargo-nextest
uses: taiki-e/install-action@cargo-nextest
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Generate code coverage
run: cargo llvm-cov nextest -p malachite-itf --all-features --lcov --output-path lcov.info
- name: Generate text report
run: cargo llvm-cov report
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: Code/lcov.info
flags: mbt
fail_ci_if_error: true
2 changes: 1 addition & 1 deletion .github/workflows/mbt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ jobs:
run: echo "QUINT_SEED=$(date +%s)" >> $GITHUB_ENV
- name: Run tests from traces (with random seed)
working-directory: Code/itf
run: cargo nextest run --workspace --all-features test_itf
run: cargo nextest run -p malachite-itf --all-features
4 changes: 3 additions & 1 deletion .github/workflows/quint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ jobs:
quint-test:
name: Test
runs-on: ubuntu-latest
env:
MAX_SAMPLES: 100
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: "18"
- run: npm install -g @informalsystems/quint
- run: bash Scripts/quint-forall.sh test Specs/Quint/*Test.qnt
- run: bash Scripts/quint-forall.sh "test --max-samples $MAX_SAMPLES" Specs/Quint/*Test.qnt
3 changes: 3 additions & 0 deletions Code/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[alias]
mbt = "nextest run -p malachite-itf --all-features"
integration = "nextest run --workspace --exclude malachite-itf"
1 change: 0 additions & 1 deletion Code/QUESTIONS.md

This file was deleted.

11 changes: 0 additions & 11 deletions Code/TODO.md

This file was deleted.

Loading

0 comments on commit 8a83223

Please sign in to comment.