Skip to content

Commit

Permalink
Merge pull request #43 from oiwn/dev
Browse files Browse the repository at this point in the history
fixing ci/cd - coverage
  • Loading branch information
oiwn authored Dec 11, 2024
2 parents c42bd0f + 043eee0 commit 8b0e5b1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,28 @@ jobs:
image: redis
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4

- uses: dtolnay/rust-toolchain@stable
with:
components: llvm-tools-preview

- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov

Expand All @@ -169,5 +184,7 @@ jobs:
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: lcov.info
fail_ci_if_error: true
verbose: true
4 changes: 2 additions & 2 deletions capp-queue/src/task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ mod tests {
.unwrap()
.duration_since(task.started_at.unwrap())
.unwrap()
< std::time::Duration::from_millis(10)
< std::time::Duration::from_millis(50)
);
// finished_at - queue_at
assert!(
Expand Down Expand Up @@ -290,7 +290,7 @@ mod tests {
.unwrap()
.duration_since(task.started_at.unwrap())
.unwrap()
< std::time::Duration::from_millis(10)
< std::time::Duration::from_millis(50)
);
// finished_at - queue_at
assert!(
Expand Down

0 comments on commit 8b0e5b1

Please sign in to comment.