Skip to content

Commit

Permalink
Fixed codecov support (#11)
Browse files Browse the repository at this point in the history
* add coverage report plugin

* denerate coverage report
  • Loading branch information
Kazhuu authored Jan 5, 2022
1 parent a5f31c5 commit 29f1118
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ jobs:
${PYTHON} -m pip install pipenv
pipenv install --dev
- name: Run tests
run: pipenv run pytest --junitxml=test_output.xml
run: pipenv run pytest --cov-report xml --cov=src test/
- name: Codecov
uses: codecov/codecov-action@v2
with:
files: ./test_output.xml
files: ./coverage.xml
- name: Linting
if: ${{ matrix.os == 'ubuntu-latest' }}
run: pipenv run flake8
9 changes: 6 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@ __pycache__/
build/
dist/
*egg-info
Pipfile.lock

# Vim swaps
# Vim files
.*.swp
Session.vim

# GDB history
.gdb_history

# Test output
test_output*
# Reporting
coverage.xml
.coverage
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ graphviz = "*"
ipdb = "*"
flake8 = "*"
pytest = "*"
pytest-cov = "*"

0 comments on commit 29f1118

Please sign in to comment.