Skip to content

Commit ab2f52a

Browse files
committed
fix Codecov upload in CI pipeline
- Updated Codecov action to search the .tox directory for coverage files. - Replaced problematic shell expansion with directory-based discovery. - Updated README coverage badge with official token and dashboard link.
1 parent d6156ca commit ab2f52a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,6 @@ jobs:
7070
- name: Upload coverage to Codecov
7171
uses: codecov/codecov-action@v5
7272
with:
73-
files: .tox/coverage.py$(echo ${{ matrix.python-version }} | tr -d .).xml
74-
fail_ci_if_error: false
73+
directory: .tox/
74+
fail_ci_if_error: true
7575
token: ${{ secrets.CODECOV_TOKEN }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Interface Documentation
22

33
[![CI Status](https://github.com/RasmusGOlsen/cocotbext-interface/actions/workflows/ci.yml/badge.svg)](https://github.com/RasmusGOlsen/cocotbext-interface/actions)
4-
[![codecov](https://codecov.io/gh/RasmusGOlsen/cocotbext-interface/branch/main/graph/badge.svg)](https://codecov.io/gh/RasmusGOlsen/cocotbext-interface)
4+
[![codecov](https://codecov.io/gh/RasmusGOlsen/cocotbext-interface/graph/badge.svg?token=24GVY2TN6N)](https://app.codecov.io/gh/RasmusGOlsen/cocotbext-interface/tree/main)
55
[![PyPI version](https://img.shields.io/pypi/v/cocotbext-interface.svg)](https://pypi.org/project/cocotbext-interface/)
66
[![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)
77
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)

0 commit comments

Comments
 (0)