Skip to content

Commit

Permalink
Import coverage to codecov
Browse files Browse the repository at this point in the history
Add codecov project

Remove travis project
  • Loading branch information
dcp28 authored and didix21 committed Oct 16, 2021
1 parent 57eb878 commit 26ae294
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 21 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: 3.6
- name: Test with pytest
- name: Install dependencies
run: pip install coverage
- name: Test unittest
run: |
python -m unittest discover
coverage run -m unittest discover
coverage xml
- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v2
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# mdutils
[![Build Status](https://travis-ci.org/didix21/mdutils.svg?branch=master)](https://travis-ci.org/didix21/mdutils)
[![Documentation Status](https://readthedocs.org/projects/mdutils/badge/?version=latest)](http://mdutils.readthedocs.io/en/latest/?badge=latest)
[![Coverage Status](https://coveralls.io/repos/github/didix21/mdutils/badge.svg?branch=master)](https://coveralls.io/github/didix21/mdutils?branch=master)
[![codecov](https://codecov.io/gh/didix21/mdutils/branch/master/graph/badge.svg?token=0DN72Z1B6V)](https://codecov.io/gh/didix21/mdutils)

Table of Contents
=================
Expand Down
6 changes: 6 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
coverage:
status:
project:
default:
target: 80% # the required coverage value
threshold: 1%

0 comments on commit 26ae294

Please sign in to comment.