Skip to content

Commit 11dbeb0

Browse files
authored
Merge pull request #27 from piyueh/codecov
replace coveralls service with codecov
2 parents 3d0031e + ab4be8a commit 11dbeb0

File tree

2 files changed

+11
-22
lines changed

2 files changed

+11
-22
lines changed

.github/workflows/test.yml

+10-21
Original file line numberDiff line numberDiff line change
@@ -27,25 +27,14 @@ jobs:
2727
- name: Install dependencies
2828
run: |
2929
python -m pip install --upgrade pip
30-
pip install --upgrade tox coveralls
30+
pip install --upgrade tox
3131
- name: Test with tox with coverage
32-
run: tox -- --cov -v
33-
- name: Upload coverage data to coveralls.io
34-
run: coveralls --service=github
35-
env:
36-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37-
COVERALLS_FLAG_NAME: ${{ matrix.python-version }}
38-
COVERALLS_PARALLEL: true
39-
40-
coveralls:
41-
name: Indicate completion to coveralls.io
42-
needs: build_and_test
43-
runs-on: ubuntu-20.04
44-
container: python:3-slim
45-
steps:
46-
- name: Finished
47-
run: |
48-
pip install --upgrade coveralls
49-
coveralls --service=github --finish
50-
env:
51-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
run: tox -- --cov --cov-report=xml -v
33+
- name: Upload coverage to Codecov
34+
uses: codecov/codecov-action@v1
35+
with:
36+
token: ${{ secrets.CODECOV_TOKEN }}
37+
files: ./coverage.xml
38+
flags: py${{ matrix.python-version }}
39+
fail_ci_if_error: true
40+
verbose: true

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# imaplib2: a threaded Python IMAP4 client
22

33
[![Jazzband](https://jazzband.co/static/img/badge.svg)](https://jazzband.co/)
4-
[![Coverage Status](https://coveralls.io/repos/github/jazzband/imaplib2/badge.svg?branch=master)](https://coveralls.io/github/jazzband/imaplib2?branch=master)
4+
[![codecov](https://codecov.io/gh/jazzband/imaplib2/branch/master/graph/badge.svg?token=DZZ3P6438E)](https://codecov.io/gh/jazzband/imaplib2)
55

66
Based on RFC 3501 and original imaplib module.
77

0 commit comments

Comments
 (0)