Skip to content

Commit

Permalink
Try Codecov v5
Browse files Browse the repository at this point in the history
  • Loading branch information
namannimmo10 committed Jan 17, 2025
1 parent df49be2 commit 3988a76
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/httomolibgpu_tests_run_iris.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,28 @@ jobs:
uses: actions/checkout@v4

- name: Create conda environment
uses: mamba-org/setup-micromamba@v1
uses: mamba-org/setup-micromamba@v2
with:
environment-file: conda/environment.yml
environment-name: httomo
post-cleanup: 'all'
init-shell: bash

- name: Install httomolibgpu
- name: Install httomolibgpu & coverage tools
run: |
pip install .[dev]
pip install coverage
micromamba list
- name: Run unit tests on small data
- name: Run tests with coverage
run: |
pytest tests/
pytest --cov=./ tests/ --cov-report=xml:/home/runner/coverage.xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: /home/runner/coverage.xml
fail_ci_if_error: true
name: httomolibgpu-codecov
verbose: true
8 changes: 8 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
coverage:
status:
project:
default:
target: 90%
comment:
layout: "header, diff, flags, files"
behavior: default

0 comments on commit 3988a76

Please sign in to comment.