Skip to content

Commit

Permalink
CI check for 100 test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Siecje committed Feb 2, 2024
1 parent 6f9a137 commit a7ce2fb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pytest
python -m pip install --upgrade pip setuptools wheel
python -m pip install coverage pytest
python -m pip install .
- name: Test with pytest
- name: Tests
run: |
pytest
coverage run --branch -m pytest
coverage report --fail-under=100
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ $ venv/bin/python -m pytest .

```shell
$ venv/bin/python -m pip install coverage
$ venv/bin/coverage run -m pytest .
$ venv/bin/coverage run --branch -m pytest .
$ venv/bin/coverage html --omit='/private/*'
$ open htmlcov/index.html
```

0 comments on commit a7ce2fb

Please sign in to comment.