Skip to content

Commit

Permalink
add code cover CI job
Browse files Browse the repository at this point in the history
  • Loading branch information
SimeonEhrig committed Aug 31, 2023
1 parent f76e509 commit 6374207
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 2 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: CodeCov
on: [push, pull_request]
jobs:
run:
runs-on: ubuntu-latest
env:
OS: ubuntu-latest
PYTHON: '3.11'
steps:
- uses: checkout@v2
with:
fetch-depth: ‘2’

- name: Setup Python
uses: actions/setup-python@master
with:
python-version: 3.11
- name: Generate Report
run: |
pip install coverage
coverage run -m unittest
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,7 @@ env

# pipenv files
Pipfile
Pipfile.lock
Pipfile.lock

# locally generated coverage report
tests/.coverage
2 changes: 2 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ignore:
- "*/tests/*”
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.5.3
1.5.4

0 comments on commit 6374207

Please sign in to comment.