Skip to content

Commit

Permalink
CI: Add memory consumption test
Browse files Browse the repository at this point in the history
  • Loading branch information
automainint committed Sep 16, 2024
1 parent 7ec1e3d commit d21144d
Show file tree
Hide file tree
Showing 3 changed files with 2,090 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,16 @@ jobs:
- name: Run tests
run: |
cargo test
memory_consumption:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: |
cargo build --release
- name: Run tests
run: |
export MEM_KB=`/usr/bin/time -f "%M" cargo test smoke_memory --release --quiet 2>&1 1>/dev/null`
if [ $MEM_KB -gt 300 ]; then
exit 1
fi
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "meritrank"
version = "0.7.1"
version = "0.7.2"
edition = "2021"
description = "MeritRank algorithm library"
license = "MIT"
Expand Down
Loading

0 comments on commit d21144d

Please sign in to comment.