From 6519a1d543edfd1e4df620139a12a551a66813f1 Mon Sep 17 00:00:00 2001 From: Zewen Kelvin Tuong Date: Wed, 8 Jan 2025 10:25:57 +1000 Subject: [PATCH] fix badge (#96) * fix badge * how about this? * Update badge.yaml --- .github/workflows/badge.yaml | 9 +++------ README.rst | 2 +- docs/README.rst | 4 ++-- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/badge.yaml b/.github/workflows/badge.yaml index 608aa79..170af6f 100644 --- a/.github/workflows/badge.yaml +++ b/.github/workflows/badge.yaml @@ -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/BYOB@v1.3.0 with: diff --git a/README.rst b/README.rst index 55ea100..6777715 100644 --- a/README.rst +++ b/README.rst @@ -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 diff --git a/docs/README.rst b/docs/README.rst index 4d43b75..558961b 100644 --- a/docs/README.rst +++ b/docs/README.rst @@ -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