diff options
| author | Alex Grönholm <alex.gronholm@nextday.fi> | 2021-12-24 02:09:09 +0200 |
|---|---|---|
| committer | Alex Grönholm <alex.gronholm@nextday.fi> | 2021-12-24 02:09:09 +0200 |
| commit | 895550cbb45510665f74382d18a5bc69451c7066 (patch) | |
| tree | 789948575b3511420113066fe9c4210c58a524d0 | |
| parent | bf15b29ee2fabfe8b720413be5bb929d5814cc97 (diff) | |
| download | wheel-git-895550cbb45510665f74382d18a5bc69451c7066.tar.gz | |
Moved tool configurations to pyproject.toml
| -rw-r--r-- | .github/workflows/codeqa-test.yml | 8 | ||||
| -rw-r--r-- | pyproject.toml | 10 | ||||
| -rw-r--r-- | setup.cfg | 12 |
3 files changed, 15 insertions, 15 deletions
diff --git a/.github/workflows/codeqa-test.yml b/.github/workflows/codeqa-test.yml index adc83bf..342b0f7 100644 --- a/.github/workflows/codeqa-test.yml +++ b/.github/workflows/codeqa-test.yml @@ -59,10 +59,12 @@ jobs: - name: Install the project run: "pip install --no-binary=:all: ." - name: Install test dependencies - run: pip install .[test] + run: pip install .[test] coverage - name: Test with pytest - run: python -b -m pytest -W always --cov-report=xml:pytest-cov.xml + run: | + coverage run -m pytest -W always + coverage xml - name: Send coverage data to Codecov uses: codecov/codecov-action@v1 with: - file: pytest-cov.xml + file: coverage.xml diff --git a/pyproject.toml b/pyproject.toml index a3165ec..7611987 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,3 +15,13 @@ skip_gitignore = true [tool.flake8] max-line-length = 88 + +[tool.pytest.ini_options] +testpaths = "tests" + +[tool.coverage.run] +source = ["wheel"] +omit = ["*/vendored/*"] + +[tool.coverage.report] +show_missing = true @@ -40,21 +40,9 @@ where = src [options.extras_require] test = pytest >= 3.0.0 - pytest-cov [options.entry_points] console_scripts = wheel = wheel.cli:main distutils.commands = bdist_wheel = wheel.bdist_wheel:bdist_wheel - -[tool:pytest] -addopts = --cov --cov-config=setup.cfg -testpaths = tests - -[coverage:run] -source = wheel -omit = */vendored/* - -[coverage:report] -show_missing = true |
