Skip to content

Commit

Permalink
chore: update badges (#21)
Browse files Browse the repository at this point in the history
* chore: update badges
* ci: use pyb coverage
---------
Signed-off-by: Emilio Reyes <soda480@gmail.com>
  • Loading branch information
soda480 committed Mar 22, 2024
1 parent 02848e6 commit 179fbb2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 36 deletions.
34 changes: 1 addition & 33 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,36 +20,4 @@ jobs:
- name: build images
run:
docker image build --build-arg PYTHON_VERSION=${{ matrix.version }} -t pybanybadge:${{ matrix.version }} .
- name: save pybanybadge ${{ matrix.version }} image
if: ${{ matrix.version == '3.9' }}
run: |
mkdir -p images
docker save --output images/pybanybadge-${{ matrix.version }}.tar pybanybadge:${{ matrix.version }}
- name: upload pybanybadge ${{ matrix.version }} image artifact
if: ${{ matrix.version == '3.9' }}
uses: actions/upload-artifact@v2
with:
name: image
path: images/pybanybadge-${{ matrix.version }}.tar
coverage:
name: Publish Code Coverage Report
needs: build-images
runs-on: ubuntu-20.04
steps:
- name: download image artifact
uses: actions/download-artifact@v2
with:
name: image
path: images/
- name: load image
run:
docker load --input images/pybanybadge-3.9.tar
- name: prepare report
run: |
ID=$(docker create pybanybadge:3.9)
docker cp $ID:/code/target/reports/pybuilder-anybadge_coverage.xml pybanybadge_coverage.xml
sed -i -e 's,filename="pybanybadge/,filename="src/main/python/pybanybadge/,g' pybanybadge_coverage.xml
- name: upload report
uses: codecov/codecov-action@v2
with:
file: pybanybadge_coverage.xml

2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# pybuilder-anybadge
[![GitHub Workflow Status](https://github.com/soda480/pybuilder-anybadge/workflows/build/badge.svg)](https://github.com/soda480/pybuilder-anybadge/actions)
[![Code Coverage](https://codecov.io/gh/soda480/pybuilder-anybadge/branch/main/graph/badge.svg)](https://codecov.io/gh/soda480/pybuilder-anybadge)
[![Code Grade](https://api.codiga.io/project/34777/status/svg)](https://app.codiga.io/hub/project/34777/pybuilder-anybadge)
[![PyPI version](https://badge.fury.io/py/pybuilder-anybadge.svg)](https://badge.fury.io/py/pybuilder-anybadge)
[![python](https://img.shields.io/badge/python-3.7%20%7C%203.8%20%7C%203.9%20%7C%203.10-teal)](https://www.python.org/downloads/)

Expand Down
2 changes: 1 addition & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
authors = [Author('Emilio Reyes', 'soda480@gmail.com')]
summary = 'A pybuilder plugin that generates badges for your project'
url = 'https://github.com/soda480/pybuilder-anybadge'
version = '0.3.3'
version = '0.3.4'
default_task = [
'clean',
'analyze',
Expand Down

0 comments on commit 179fbb2

Please sign in to comment.