Skip to content

Commit

Permalink
added codecov workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
arberzela committed Jul 28, 2021
1 parent 69b85fb commit e3d5abc
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ comment: off
codecov:
branch: Develop
require_ci_to_pass: false

ignore:
- "*/tests/*"
31 changes: 31 additions & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CodeCov

on:
push:
branches:
- Develop

jobs:
run:
runs-on: ubuntu-latest
env:
OS: ubuntu-latest
PYTHON: '3.8'
steps:
- uses: actions/checkout@v2

- name: Setup Python 3.8
uses: actions/setup-python@master
with:
python-version: 3.8

- name: 'generate report'
run: |
pip install coverage
coverage run -m unittest
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
flags: unittests
fail_ci_if_error: true

0 comments on commit e3d5abc

Please sign in to comment.