Skip to content

Commit 3988a76

Browse files
committed
Try Codecov v5
1 parent df49be2 commit 3988a76

File tree

2 files changed

+22
-4
lines changed

2 files changed

+22
-4
lines changed

.github/workflows/httomolibgpu_tests_run_iris.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,28 @@ jobs:
2222
uses: actions/checkout@v4
2323

2424
- name: Create conda environment
25-
uses: mamba-org/setup-micromamba@v1
25+
uses: mamba-org/setup-micromamba@v2
2626
with:
2727
environment-file: conda/environment.yml
2828
environment-name: httomo
2929
post-cleanup: 'all'
3030
init-shell: bash
3131

32-
- name: Install httomolibgpu
32+
- name: Install httomolibgpu & coverage tools
3333
run: |
3434
pip install .[dev]
35+
pip install coverage
3536
micromamba list
3637
37-
- name: Run unit tests on small data
38+
- name: Run tests with coverage
3839
run: |
39-
pytest tests/
40+
pytest --cov=./ tests/ --cov-report=xml:/home/runner/coverage.xml
41+
42+
- name: Upload coverage to Codecov
43+
uses: codecov/codecov-action@v5
44+
with:
45+
token: ${{ secrets.CODECOV_TOKEN }}
46+
files: /home/runner/coverage.xml
47+
fail_ci_if_error: true
48+
name: httomolibgpu-codecov
49+
verbose: true

codecov.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
coverage:
2+
status:
3+
project:
4+
default:
5+
target: 90%
6+
comment:
7+
layout: "header, diff, flags, files"
8+
behavior: default

0 commit comments

Comments
 (0)