Skip to content

Commit

Permalink
Still tryinh to get badges displayed.
Browse files Browse the repository at this point in the history
  • Loading branch information
cnobile2012 committed Feb 3, 2025
1 parent 17d7f7c commit 84375c4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,6 @@ jobs:
- name: Test with pytest
run: |
make tests
- name: Set badge path
run: |
echo "badge: 'docs/badges/coverage.svg'" >> $GITHUB_ENV
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ tests : clobber
@coverage report -m --rcfile=$(COVERAGE_FILE)
@coverage html --rcfile=$(COVERAGE_FILE)
@coverage xml --rcfile=$(COVERAGE_FILE)
@mkdir docs/badges
@genbadge coverage -i docs/xmlcov/coverage.xml \
-o docs/xmlcov/coverage-badge.svg
-o docs/badges/coverage-badge.svg
@echo $(TODAY)

.PHONY : flake8
Expand Down Expand Up @@ -127,4 +128,5 @@ clobber : clean
@rm -rf dist badidatetime.egg-info
@rm -rf $(DOCS_DIR)/htmlcov
@rm -rf $(DOCS_DIR)/xmlcov
@rm -rf $(DOCS_DIR)/badges
#@rm -rf $(DOCS_DIR)/build
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Introduction to the Badí' Calendar API
:alt: Build Status

.. The badge is auto-generated by make.
.. image:: https://github.com/cnobile2012/bahai-calendar/raw/main/docs/xmlcov/coverage-badge.svg
.. image:: https://github.com/cnobile2012/bahai-calendar/actions/workflows/python-package.yml/coverage.svg
:target: https://github.com/cnobile2012/bahai-calendar/actions
:alt: Coverage

Expand Down

0 comments on commit 84375c4

Please sign in to comment.