Skip to content

Commit

Permalink
fix badge (#96)
Browse files Browse the repository at this point in the history
* fix badge

* how about this?

* Update badge.yaml
  • Loading branch information
zktuong authored Jan 8, 2025
1 parent 90f1d1a commit 6519a1d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/badge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,15 @@ jobs:
defaults:
run:
shell: bash -l {0}
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.8"
uses: actions/setup-python@v5
- id: version
name: Install package
run: |
python -m pip install .
echo "##[set-output name=version;]$(python -c'import ktplotspy; print(ktplotspy.__version__)')"
echo "version=$(python -m pip show ktplotspy | grep Version | awk '{print $2}')" >> $GITHUB_OUTPUT
- name: version badge
uses: RubbaBoy/[email protected]
with:
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ as well, as github repositories. Also leave a star at the
.. |Master| image:: https://byob.yarr.is/zktuong/ktplotspy/version
:target: https://github.com/zktuong/ktplotspy/tree/master
.. |MasterTest| image:: https://github.com/zktuong/ktplotspy/workflows/tests/badge.svg?branch=master
:target: https://github.com/zktuong/ktplotspy/actions/workflows/tests.yml
:target: https://github.com/zktuong/ktplotspy/actions/workflows/tests.yaml
.. |CodeCov| image:: https://codecov.io/gh/zktuong/ktplotspy/branch/master/graph/badge.svg?token=661BMU1FBO
:target: https://codecov.io/gh/zktuong/ktplotspy
.. |logo| image:: docs/notebooks/logo.png
4 changes: 2 additions & 2 deletions docs/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ as well, as github repositories. Also leave a star at the
:target: https://pypi.org/project/ktplotspy/
.. |Master| image:: https://byob.yarr.is/zktuong/ktplotspy/version
:target: https://github.com/zktuong/ktplotspy/tree/master
.. |MasterTest| image:: https://github.com/zktuong/ktplotspy/workflows/tests/badge.svg?branch=master
:target: https://github.com/zktuong/ktplotspy/actions/workflows/tests.yml
.. |MasterTest| image:: https://github.com/zktuong/ktplotspy/actions/workflows/tests.yaml/badge.svg?branch=master
:target: https://github.com/zktuong/ktplotspy/actions/workflows/tests.yaml
.. |CodeCov| image:: https://codecov.io/gh/zktuong/ktplotspy/branch/master/graph/badge.svg?token=661BMU1FBO
:target: https://codecov.io/gh/zktuong/ktplotspy

0 comments on commit 6519a1d

Please sign in to comment.