Skip to content

Migrate benches to divan #64

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 19 additions & 20 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ jobs:
matrix:
rust:
- version: 1.58.1
run-all: false
integration-tests: false
- version: 1.80.1
run-all: true
integration-tests: true

steps:
- uses: actions/checkout@v2
Expand All @@ -34,25 +34,24 @@ jobs:
rustup default ${{ matrix.rust.version }}

- name: Check lib
run: $HOME/.cargo/bin/cargo check --lib

- name: Check all
# We can't use --all-targets because it includes benches which requires nightly compiler
run: $HOME/.cargo/bin/cargo check --workspace --lib --bins --examples --tests
if: ${{ matrix.rust.run-all }}

- name: Clippy
# We can't use --all-targets because it includes benches which requires nightly compiler
run: $HOME/.cargo/bin/cargo clippy --workspace --lib --bins --examples --tests
if: ${{ matrix.rust.run-all }}

- name: Check Format
run: $HOME/.cargo/bin/cargo fmt --check
if: ${{ matrix.rust.run-all }}
run: |
$HOME/.cargo/bin/cargo check --all-targets --no-default-features
$HOME/.cargo/bin/cargo check --all-targets
$HOME/.cargo/bin/cargo clippy --all-targets
$HOME/.cargo/bin/cargo fmt --check
$HOME/.cargo/bin/cargo test
env:
RUST_BACKTRACE: 1

- name: Test
run: $HOME/.cargo/bin/cargo test --workspace
if: ${{ matrix.rust.run-all }}
- name: Check integration tests
run: |
pushd integration_tests
$HOME/.cargo/bin/cargo check --all-targets
$HOME/.cargo/bin/cargo clippy --all-targets
$HOME/.cargo/bin/cargo fmt --check
$HOME/.cargo/bin/cargo test
popd
if: ${{ matrix.rust.integration-tests }}
env:
RUST_BACKTRACE: 1

278 changes: 5 additions & 273 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 0 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,6 @@ serde = { version = "1.0", optional = true, default-features = false }

[dev-dependencies]
rand = "0.8.5"
indexmap = "1.8.2"

[package.metadata.docs.rs]
features = ["serde"]

[workspace]
resolver = "2"
members = [
"integration_tests/random_ops",
"integration_tests/serde",
]
Loading
Loading