Skip to content

Commit

Permalink
Merge pull request #166 from r1chardj0n3s/cov
Browse files Browse the repository at this point in the history
enable doctest + coverage in CI
  • Loading branch information
wimglenn authored Nov 9, 2023
2 parents 286bcb1 + da5a7c4 commit fe4db28
Show file tree
Hide file tree
Showing 8 changed files with 583 additions and 631 deletions.
42 changes: 0 additions & 42 deletions .coveragerc

This file was deleted.

1 change: 1 addition & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
4cc9e9f398b8b80e6f0a68d25774cb1c0c32f2fb # black string normalization
16 changes: 12 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,12 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Run tests
run: |
python test_parse.py
python -m doctest README.rst
pip install -r tests/requirements.txt --editable .
pytest
- name: Upload coverage to Codecov
uses: "codecov/codecov-action@main"
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

tests-27:
name: "Python 2.7 on ubuntu-20.04"
Expand All @@ -40,5 +44,9 @@ jobs:
- uses: actions/checkout@v3
- name: Run tests
run: |
python test_parse.py
python -m doctest README.rst
pip install -r tests/requirements.txt
python -m pytest
- name: Upload coverage to Codecov
uses: "codecov/codecov-action@main"
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
2 changes: 2 additions & 0 deletions .pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[pytest]
addopts = --cov=parse --cov-report=term-missing --cov-append --cov-branch --doctest-modules --doctest-glob=README.rst
Loading

0 comments on commit fe4db28

Please sign in to comment.