Skip to content

Commit

Permalink
Generalise tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nazq committed Jun 20, 2024
1 parent 537796c commit 8e3c898
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 3 deletions.
11 changes: 11 additions & 0 deletions Cargo.lock

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

13 changes: 12 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,18 @@ chrono = { version = "0.4.38", features = ["serde"] }
bincode = "1.3.3"
reqwest = { version = "0.12.4", features = ["json"] }
tokio = { version = "1.38.0", features = ["full"] }
#openssl = { version = "0.10.64", features = ["vendored"] }

[target.'cfg(target_arch = "aarch64")'.dependencies]
openssl = { version = "0.10.64", features = ["vendored"] }

[target.'cfg(target_arch = "arm")'.dependencies]
openssl = { version = "0.10.64", features = ["vendored"] }

[target.'cfg(target_arch = "powerpc64")'.dependencies]
openssl = { version = "0.10.64", features = ["vendored"] }

[target.'cfg(target_env = "musl")'.dependencies]
openssl = { version = "0.10.64", features = ["vendored"] }

[package.metadata.cargo-llvm-cov]
# Ignore directories and files that are not part of the Rust source code
Expand Down
14 changes: 12 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
.PHONY: cross-perf
.PHONY: cross-perf, gha-dev

BRANCH_NAME := $(shell git rev-parse --abbrev-ref HEAD)
REPO := jpmorganchase/fusion
WORKFLOW_FILE := dev.yml

cross-perf:
@for version in 3.9 3.10 3.11 3.12; do \
Expand All @@ -11,4 +15,10 @@ cross-perf:
cargo test -r && \
cargo llvm-cov report --html --output-dir .reports/rust && \
pytest --color=yes --benchmark-only --benchmark-save=cross || true; \
done
done

gha-dev:
gh workflow run $(WORKFLOW_FILE) --ref $(BRANCH_NAME) --repo $(REPO)

gha-dev-cancel:
gh run list --branch $(BRANCH_NAME) --workflow=$(WORKFLOW_FILE) --limit 1 --json databaseId --jq '.[].databaseId' | xargs -I {} gh run cancel {}

0 comments on commit 8e3c898

Please sign in to comment.