Skip to content

Commit

Permalink
Merge pull request #27 from piyueh/codecov
Browse files Browse the repository at this point in the history
replace coveralls service with codecov
  • Loading branch information
piyueh committed Jun 10, 2021
2 parents 3d0031e + ab4be8a commit 11dbeb0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 22 deletions.
31 changes: 10 additions & 21 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,25 +27,14 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade tox coveralls
pip install --upgrade tox
- name: Test with tox with coverage
run: tox -- --cov -v
- name: Upload coverage data to coveralls.io
run: coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: ${{ matrix.python-version }}
COVERALLS_PARALLEL: true

coveralls:
name: Indicate completion to coveralls.io
needs: build_and_test
runs-on: ubuntu-20.04
container: python:3-slim
steps:
- name: Finished
run: |
pip install --upgrade coveralls
coveralls --service=github --finish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: tox -- --cov --cov-report=xml -v
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
flags: py${{ matrix.python-version }}
fail_ci_if_error: true
verbose: true
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# imaplib2: a threaded Python IMAP4 client

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

Based on RFC 3501 and original imaplib module.

Expand Down

0 comments on commit 11dbeb0

Please sign in to comment.