Skip to content

Commit

Permalink
Adopt cargo-nextest
Browse files Browse the repository at this point in the history
  • Loading branch information
cjdsellers committed Jan 6, 2024
1 parent 14df538 commit af2fd59
Show file tree
Hide file tree
Showing 5 changed files with 111 additions and 72 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ jobs:
- name: Run nautilus_core cargo tests (Linux, macOS)
if: (runner.os == 'Linux') || (runner.os == 'macOS')
run: make cargo-test
run: |
cargo install cargo-nextest
make cargo-test
- name: Run tests (Linux, macOS)
if: (runner.os == 'Linux') || (runner.os == 'macOS')
Expand Down
13 changes: 8 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,8 @@ pre-commit:
ruff:
ruff check . --fix

.PHONY: update
update:
(cd nautilus_core && cargo update)
.PHONY: update cargo-update
update: cargo-update
poetry update
poetry install --with dev,test --all-extras --no-root

Expand All @@ -79,11 +78,15 @@ cargo-build:

.PHONY: cargo-update
cargo-update:
(cd nautilus_core && cargo update)
(cd nautilus_core && cargo update && cargo install cargo-nextest)

.PHONY: cargo-test
cargo-test:
RUST_BACKTRACE=1 && (cd nautilus_core && cargo test)
@if ! cargo nextest --version >/dev/null 2>&1; then \
echo "cargo-nextest is not installed. You can install it using 'cargo install cargo-nextest'"; \
exit 1; \
fi
RUST_BACKTRACE=1 && (cd nautilus_core && cargo nextest run --workspace --exclude tokio-tungstenite)

.PHONY: cargo-test-nightly
cargo-test-nightly:
Expand Down
12 changes: 6 additions & 6 deletions nautilus_core/Cargo.lock

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

2 changes: 1 addition & 1 deletion nautilus_core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ redis = { version = "0.24.0", features = ["tokio-comp", "tls-rustls", "tokio-rus
rmp-serde = "1.1.2"
rust_decimal = "1.33.1"
rust_decimal_macros = "1.33.1"
serde = { version = "1.0.193", features = ["derive"] }
serde = { version = "1.0.195", features = ["derive"] }
serde_json = "1.0.111"
strum = { version = "0.25.0", features = ["derive"] }
thiserror = "1.0.56"
Expand Down
Loading

0 comments on commit af2fd59

Please sign in to comment.