Skip to content

Commit dcf5ee8

Browse files
authored
Merge pull request #266 from mtezzele/codacy
codacy badge and report generation
2 parents 1c44535 + 4c81dc2 commit dcf5ee8

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ jobs:
3232
python3 -m pytest
3333
else
3434
python3 -m pytest --cov-report term --cov-report xml:cobertura.xml --cov=pygem
35-
bash <(curl -Ls https://coverage.codacy.com/get.sh) report -r cobertura.xml -t $CODACY_API_TOKEN
35+
curl -s https://coverage.codacy.com/get.sh -o CodacyCoverageReporter.sh
36+
chmod +x CodacyCoverageReporter.sh
37+
./CodacyCoverageReporter.sh report -r cobertura.xml -t $CODACY_API_TOKEN
3638
fi
3739

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
<a href="LICENSE.rst" target="_blank">
88
<img alt="Software License" src="https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square">
99
</a>
10-
<a href="https://travis-ci.org/mathLab/PyGeM" target="_blank">
11-
<img alt="Build Status" src="https://travis-ci.org/mathLab/PyGeM.svg">
10+
<a href="https://github.com/mathLab/PyGeM/actions/workflows/ci.yml" target="_blank">
11+
<img alt="Build Status" src="https://github.com/mathLab/PyGeM/actions/workflows/ci.yml/badge.svg">
1212
</a>
1313
<a href="https://coveralls.io/github/mathLab/PyGeM?branch=master" target="_blank">
1414
<img alt="Coverage Status" src="https://coveralls.io/repos/github/mathLab/PyGeM/badge.svg?branch=master">
1515
</a>
16-
<a href="https://www.codacy.com/app/mathLab/PyGeM?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=mathLab/PyGeM&amp;utm_campaign=Badge_Grade" target="_blank">
17-
<img alt="Codacy Badge" src="https://api.codacy.com/project/badge/Grade/7299abd9d61c4aa586903d80cea01c82">
16+
<a href="https://www.codacy.com/gh/mathLab/PyGeM/dashboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=mathLab/PyGeM&amp;utm_campaign=Badge_Grade">
17+
<img alt="Codacy Badge" src="https://app.codacy.com/project/badge/Grade/f9bb7eb2759746e2b175c040efb975c2"/>
1818
</a>
1919
<a href="https://registry.hub.docker.com/r/sissamathlab/pygem">
2020
<img alt="Docker Pulls" src="https://img.shields.io/docker/pulls/sissamathlab/pygem">

0 commit comments

Comments
 (0)