Skip to content

Commit

Permalink
Use code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario Ruiz committed Nov 18, 2021
1 parent 700cc1c commit 91d7efe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pyfakefs pytest pytest-cov codecov ipywidgets graphviz numpy cffi opencv-python
pip install flake8 pyfakefs pytest coverage codecov ipywidgets graphviz numpy cffi opencv-python
pip install pynq
- name: Lint with flake8
run: |
Expand All @@ -34,4 +34,6 @@ jobs:
flake8 pynq_composable --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest --doctest-modules --junitxml=junit/test-results-${{ matrix.python-version }}.xml
coverage run --source pynq_composable/ -m pytest tests/ -vv && coverage report --show-missing
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v1
Empty file added codecov.yml
Empty file.

0 comments on commit 91d7efe

Please sign in to comment.