Skip to content

Commit dcdbffe

Browse files
committed
add badge
1 parent 26e3afc commit dcdbffe

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/build.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,13 @@ jobs:
9090
with:
9191
coverageFile: coverage.xml
9292
token: ${{ secrets.GITHUB_TOKEN }}
93-
- if: matrix.python-version == '3.12' && github.event_name != 'pull_request'
93+
- if: matrix.python-version == '3.12' && github.ref == 'refs/heads/main'
9494
run: |
9595
pip install genbadge[coverage]
96-
genbadge coverage --input-file coverage.xml --output-file ./dist/coverage-badge.svg
96+
genbadge coverage --input-file coverage.xml --output-file ./dist/coverage/coverage-badge.svg
9797
coverage html -d dist/coverage
98-
- uses: actions/upload-artifact@v4
98+
- if: matrix.python-version == '3.12' && github.ref == 'refs/heads/main'
99+
uses: actions/upload-artifact@v4
99100
with:
100101
name: coverage
101102
retention-days: 1

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
[![downloads](https://static.pepy.tech/badge/bioimageio.core)](https://pepy.tech/project/bioimageio.core)
55
[![conda-forge downloads](https://img.shields.io/conda/dn/conda-forge/bioimageio.core.svg?label=conda-forge)](https://anaconda.org/conda-forge/bioimageio.core/)
66
![code style](https://img.shields.io/badge/code%20style-black-000000.svg)
7+
[![coverage](https://bioimage-io.github.io/core-bioimage-io-python/coverage/coverage-badge.svg)](https://bioimage-io.github.io/core-bioimage-io-python/coverage/index.html)
78

89
# core-bioimage-io-python
910

0 commit comments

Comments
 (0)