Skip to content

Commit dcf606b

Browse files
ci(coverage): switch from codecov to coveralls
1 parent d0d7d78 commit dcf606b

File tree

5 files changed

+105
-116
lines changed

5 files changed

+105
-116
lines changed

.codecov.yml

Lines changed: 0 additions & 57 deletions
This file was deleted.

.github/workflows/lint_test.yml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,15 @@ jobs:
164164
- name: Run tests and generate coverage report
165165
run: python -m pytest -n auto --dist loadfile --cov --disable-warnings -q
166166

167-
# This step will publish the coverage reports to codecov.io and
167+
# This step will publish the coverage reports to coveralls.io and
168168
# print a "job" link in the output of the GitHub Action
169-
- name: Publish coverage report to codecov.io
170-
run: python -m codecov
169+
- name: Publish coverage report to coveralls.io
170+
env:
171+
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
172+
COVERALLS_FLAG_NAME: coverage-${{ runner.os }}-python-${{ env.PYTHON_VERSION }}
173+
COVERALLS_PARALLEL: true
174+
COVERALLS_SERVICE_NAME: github
175+
run: python -m coveralls
171176

172177
- name: Coverage HTML
173178
run: python -m coverage html
@@ -178,6 +183,21 @@ jobs:
178183
name: coverage-${{ runner.os }}-python-${{ env.PYTHON_VERSION }}
179184
path: htmlcov
180185

186+
187+
coveralls:
188+
name: Indicate completion to coveralls.io
189+
needs: test
190+
runs-on: ubuntu-latest
191+
container: python:3-slim
192+
steps:
193+
- name: Coveralls Finished
194+
env:
195+
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
196+
COVERALLS_SERVICE_NAME: github
197+
run: |
198+
python3 -m pip install --upgrade coveralls
199+
python3 -m coveralls --finish
200+
181201
artifact:
182202
name: Generate Artifact
183203
if: always()

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# Discord Modmail
22

33
[![Lint & Test](https://img.shields.io/github/workflow/status/discord-modmail/modmail/Lint%20&%20Test/main?label=Lint+%26+Test&logo=github&style=flat)](https://github.com/discord-modmail/modmail/actions/workflows/lint_test.yml "Lint and Test")
4-
[![Code Coverage](https://img.shields.io/codecov/c/gh/discord-modmail/modmail/main?logo=codecov&style=flat&label=Code+Coverage)](https://app.codecov.io/gh/discord-modmail/modmail "Code Coverage")
5-
[![Codacy Grade](https://img.shields.io/codacy/grade/78be21a49835484595aea556d5920638?logo=codacy&style=flat&label=Code+Quality)](https://www.codacy.com/gh/discord-modmail/modmail/dashboard "Codacy Grade")
4+
[![Code Coverage](https://img.shields.io/coveralls/github/discord-modmail/modmail?logo=coveralls&style=flat&label=Code+Coverage)](https://coveralls.io/github/discord-modmail/modmail)
65
[![Python](https://img.shields.io/static/v1?label=Python&message=3.8+%7C+3.9&color=blue&logo=Python&style=flat)](https://www.python.org/downloads/ "Python 3.8 | 3.9")
76
[![License](https://img.shields.io/github/license/discord-modmail/modmail?style=flat&label=License)](./LICENSE "License file")
87
[![Code Style](https://img.shields.io/static/v1?label=Code%20Style&message=black&color=000000&style=flat)](https://github.com/psf/black "The uncompromising python formatter")

0 commit comments

Comments
 (0)