From a9485402be8c58a5bf18924cbf6bac43528755f6 Mon Sep 17 00:00:00 2001 From: Karl Kosack Date: Fri, 5 Apr 2024 16:18:58 +0200 Subject: [PATCH 1/4] add SonarQube badges --- README.rst | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index e178aef1915..b1e0bb7740a 100644 --- a/README.rst +++ b/README.rst @@ -1,5 +1,5 @@ ============================================================ -ctapipe |pypi| |conda| |doilatest| |ci| |coverage| |codacy| +ctapipe |pypi| |conda| |doilatest| |ci| |sonarqube_coverage| |sonarqube_quality| ============================================================ .. |ci| image:: https://github.com/cta-observatory/ctapipe/workflows/CI/badge.svg?branch=main @@ -7,6 +7,14 @@ ctapipe |pypi| |conda| |doilatest| |ci| |coverage| |codacy| :alt: Test Status .. |codacy| image:: https://api.codacy.com/project/badge/Grade/6192b471956b4cc684130c80c8214115 :target: https://www.codacy.com/gh/cta-observatory/ctapipe?utm_source=github.com&utm_medium=referral&utm_content=cta-observatory/ctapipe&utm_campaign=Badge_Grade +.. |sonarqube_quality| image:: https://sonar-cta-dpps.zeuthen.desy.de/api/project_badges/measure?project=cta-observatory_ctapipe_AY52EYhuvuGcMFidNyUs&metric=alert_status&token=sqb_a533204f382b350568e922385cab7c2394587458 + :target: https://sonar-cta-dpps.zeuthen.desy.de/dashboard?id=cta-observatory_ctapipe_AY52EYhuvuGcMFidNyUs + :alt: sonarqube quality gate + +.. |sonarqube_coverage| image:: https://sonar-cta-dpps.zeuthen.desy.de/api/project_badges/measure?project=cta-observatory_ctapipe_AY52EYhuvuGcMFidNyUs&metric=coverage&token=sqb_a533204f382b350568e922385cab7c2394587458 + :target: https://sonar-cta-dpps.zeuthen.desy.de/api/project_badges/measure?project=cta-observatory_ctapipe_AY52EYhuvuGcMFidNyUs&metric=coverage&token=sqb_a533204f382b350568e922385cab7c2394587458)](https://sonar-cta-dpps.zeuthen.desy.de/dashboard?id=cta-observatory_ctapipe_AY52EYhuvuGcMFidNyUs + :alt: sonarqube code coverage + .. |conda| image:: https://anaconda.org/conda-forge/ctapipe/badges/version.svg :target: https://anaconda.org/conda-forge/ctapipe .. |coverage| image:: https://codecov.io/gh/cta-observatory/ctapipe/branch/main/graph/badge.svg From 74027025deb6c36cbfa13a25b78fe7ec9145e496 Mon Sep 17 00:00:00 2001 From: Karl Kosack Date: Fri, 5 Apr 2024 16:20:20 +0200 Subject: [PATCH 2/4] remove coverage badges for codacy and codecov --- README.rst | 6 ------ 1 file changed, 6 deletions(-) diff --git a/README.rst b/README.rst index b1e0bb7740a..c027033491e 100644 --- a/README.rst +++ b/README.rst @@ -5,20 +5,14 @@ ctapipe |pypi| |conda| |doilatest| |ci| |sonarqube_coverage| |sonarqube_quality| .. |ci| image:: https://github.com/cta-observatory/ctapipe/workflows/CI/badge.svg?branch=main :target: https://github.com/cta-observatory/ctapipe/actions?query=workflow%3ACI+branch%3Amain :alt: Test Status -.. |codacy| image:: https://api.codacy.com/project/badge/Grade/6192b471956b4cc684130c80c8214115 - :target: https://www.codacy.com/gh/cta-observatory/ctapipe?utm_source=github.com&utm_medium=referral&utm_content=cta-observatory/ctapipe&utm_campaign=Badge_Grade .. |sonarqube_quality| image:: https://sonar-cta-dpps.zeuthen.desy.de/api/project_badges/measure?project=cta-observatory_ctapipe_AY52EYhuvuGcMFidNyUs&metric=alert_status&token=sqb_a533204f382b350568e922385cab7c2394587458 :target: https://sonar-cta-dpps.zeuthen.desy.de/dashboard?id=cta-observatory_ctapipe_AY52EYhuvuGcMFidNyUs :alt: sonarqube quality gate - .. |sonarqube_coverage| image:: https://sonar-cta-dpps.zeuthen.desy.de/api/project_badges/measure?project=cta-observatory_ctapipe_AY52EYhuvuGcMFidNyUs&metric=coverage&token=sqb_a533204f382b350568e922385cab7c2394587458 :target: https://sonar-cta-dpps.zeuthen.desy.de/api/project_badges/measure?project=cta-observatory_ctapipe_AY52EYhuvuGcMFidNyUs&metric=coverage&token=sqb_a533204f382b350568e922385cab7c2394587458)](https://sonar-cta-dpps.zeuthen.desy.de/dashboard?id=cta-observatory_ctapipe_AY52EYhuvuGcMFidNyUs :alt: sonarqube code coverage - .. |conda| image:: https://anaconda.org/conda-forge/ctapipe/badges/version.svg :target: https://anaconda.org/conda-forge/ctapipe -.. |coverage| image:: https://codecov.io/gh/cta-observatory/ctapipe/branch/main/graph/badge.svg - :target: https://codecov.io/gh/cta-observatory/ctapipe .. |doilatest| image:: https://zenodo.org/badge/37927055.svg :target: https://zenodo.org/badge/latestdoi/37927055 .. |pypi| image:: https://badge.fury.io/py/ctapipe.svg From dc3655f44e529a24c2ee4b18250f9376935f2dda Mon Sep 17 00:00:00 2001 From: Karl Kosack Date: Fri, 5 Apr 2024 16:23:46 +0200 Subject: [PATCH 3/4] run rst-straighten-sections --- README.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.rst b/README.rst index c027033491e..ca3a9530d46 100644 --- a/README.rst +++ b/README.rst @@ -1,6 +1,6 @@ -============================================================ -ctapipe |pypi| |conda| |doilatest| |ci| |sonarqube_coverage| |sonarqube_quality| -============================================================ +================================================================================== + ctapipe |pypi| |conda| |doilatest| |ci| |sonarqube_coverage| |sonarqube_quality| +================================================================================== .. |ci| image:: https://github.com/cta-observatory/ctapipe/workflows/CI/badge.svg?branch=main :target: https://github.com/cta-observatory/ctapipe/actions?query=workflow%3ACI+branch%3Amain @@ -30,7 +30,7 @@ expert or developer! * Slack: Contact Karl Kosack for invite Citing this software --------------------- +==================== If you use this software for a publication, please cite the Zenodo Record for the specific version you are using and our latest publication. @@ -58,7 +58,7 @@ cite using this bibtex entry: Installation for Users ----------------------- +====================== *ctapipe* and its dependencies may be installed using the *Anaconda* or *Miniconda* package system. We recommend creating a conda virtual environment From 2a026045742c6dcd00f60a838f876d294ca4e7e1 Mon Sep 17 00:00:00 2001 From: Karl Kosack Date: Fri, 5 Apr 2024 16:27:58 +0200 Subject: [PATCH 4/4] remove codecov action from CI as well --- .github/workflows/ci.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3434101e47e..fa9f92f7807 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -148,12 +148,6 @@ jobs: env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - - uses: codecov/codecov-action@v4 - if: contains(matrix.extra-args, 'codecov') && contains(github.event.pull_request.labels.*.name, 'documentation-only') == false - with: - fail_ci_if_error: true - token: ${{ secrets.CODECOV_TOKEN }} - docs: runs-on: ubuntu-latest steps: