diff --git a/.coveragerc b/.coveragerc deleted file mode 100644 index 6f42db6..0000000 --- a/.coveragerc +++ /dev/null @@ -1,9 +0,0 @@ -[run] -omit = - # leading `*/` for pytest-dev/pytest-cov#456 - */.tox/* -disable_warnings = - couldnt-parse - -[report] -show_missing = True \ No newline at end of file diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5f9a174..be62d86 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -54,44 +54,11 @@ jobs: - name: Run run: tox - diffcov: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - name: Setup Python - uses: actions/setup-python@v4 - with: - python-version: 3.x - - name: Install tox - run: | - python -m pip install tox - - name: Evaluate coverage - run: tox - env: - TOXENV: diffcov - - docs: - runs-on: ubuntu-latest - env: - TOXENV: docs - steps: - - uses: actions/checkout@v3 - - name: Setup Python - uses: actions/setup-python@v4 - - name: Install tox - run: | - python -m pip install tox - - name: Run - run: tox - check: # This job does nothing and is only used for the branch protection if: always() needs: - test - - docs runs-on: ubuntu-latest diff --git a/tox.ini b/tox.ini index e4ac445..dce287b 100644 --- a/tox.ini +++ b/tox.ini @@ -9,25 +9,6 @@ usedevelop = True extras = testing -[testenv:diffcov] -description = run tests and check that diff from main is covered -deps = - diff-cover -commands = - pytest {posargs} --cov-report xml - diff-cover coverage.xml --compare-branch=origin/main --html-report diffcov.html - diff-cover coverage.xml --compare-branch=origin/main --fail-under=100 - -[testenv:docs] -description = build the documentation -extras = - docs - testing -changedir = docs -commands = - python -m sphinx -W --keep-going . {toxinidir}/build/html - python -m sphinxlint - [testenv:finalize] description = assemble changelog and tag a release skip_install = True