Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 28 additions & 1 deletion .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,29 @@
comment:
layout: "reach, diff, flags, files"
behavior: new
require_changes: false
github_checks:
annotations: false
annotations: false
coverage:
precision: 2
round: down
range: "70...100"
status:
project:
default:
target: 75%
threshold: 0%
if_ci_failed: error
if_not_found: failure
patch:
default:
target: 100%
threshold: 0%
if_ci_failed: error
if_not_found: failure
changes:
default:
target: 100%
threshold: 0%
if_ci_failed: error
if_not_found: failure
25 changes: 23 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
name: Workflow for Codecov
on: [pull_request]
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
run:
codecov-python-39:
runs-on: windows-latest
steps:
- name: Checkout
Expand All @@ -16,5 +20,22 @@ jobs:
run: |
coverage run -m unittest discover -s src
coverage xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
codecov-python-27:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python 2.7
uses: actions/setup-python@v2
with:
python-version: 2.7
- name: Install dependencies
run: pip install coverage
- name: Run tests and collect coverage
run: |
coverage run -m unittest discover -s src
coverage xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2