CI: fix coverage config (#84)
* update coverage config * Apply suggestions from code review
This commit is contained in:
Родитель
8002ddc58c
Коммит
dfc85be4f6
|
@ -49,7 +49,7 @@ jobs:
|
|||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ${{ steps.pip-cache.outputs.dir }}
|
||||
key: ${{ runner.os }}-pip-py${{ matrix.python-version }}-${{ hashFiles('requirements.txt') }}-${{ hashFiles('tests/requirements.txt') }}
|
||||
key: ${{ runner.os }}-pip-py${{ matrix.python-version }}-${{ hashFiles('requirements.txt') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-pip-py${{ matrix.python-version }}-
|
||||
|
||||
|
|
|
@ -61,7 +61,7 @@ jobs:
|
|||
|
||||
- bash: |
|
||||
python -m coverage report
|
||||
python -m coverage xml -o '$(Build.SourcesDirectory)/coverage.xml'
|
||||
python -m coverage xml
|
||||
python -m coverage html
|
||||
python -m codecov --token=$(CODECOV_TOKEN) --commit=$(Build.SourceVersion) --flags=gpu,pytest --name="GPU-coverage" --env=linux,azure
|
||||
ls -l
|
||||
|
|
11
setup.cfg
11
setup.cfg
|
@ -1,19 +1,24 @@
|
|||
[tool:pytest]
|
||||
norecursedirs =
|
||||
.git
|
||||
.github
|
||||
dist
|
||||
build
|
||||
addopts =
|
||||
--strict
|
||||
--doctest-modules
|
||||
--durations=25
|
||||
--color=yes
|
||||
|
||||
[coverage:run]
|
||||
parallel = True
|
||||
concurrency = thread
|
||||
|
||||
[coverage:report]
|
||||
exclude_lines =
|
||||
pragma: no-cover
|
||||
pass
|
||||
|
||||
|
||||
[flake8]
|
||||
max-line-length = 120
|
||||
exclude = .tox,*.egg,build,temp
|
||||
|
@ -26,6 +31,7 @@ format = pylint
|
|||
ignore =
|
||||
E731 # Do not assign a lambda expression, use a def
|
||||
|
||||
|
||||
# setup.cfg or tox.ini
|
||||
[check-manifest]
|
||||
ignore =
|
||||
|
@ -33,12 +39,14 @@ ignore =
|
|||
.github
|
||||
.github/*
|
||||
|
||||
|
||||
[metadata]
|
||||
license_file = LICENSE
|
||||
description-file = README.md
|
||||
# long_description = file:README.md
|
||||
# long_description_content_type = text/markdown
|
||||
|
||||
|
||||
[yapf]
|
||||
based_on_style = pep8
|
||||
spaces_before_comment = 2
|
||||
|
@ -51,6 +59,7 @@ ALLOW_SPLIT_BEFORE_DICT_VALUE = false
|
|||
BLANK_LINE_BEFORE_NESTED_CLASS_OR_DEF = true
|
||||
NO_SPACES_AROUND_SELECTED_BINARY_OPERATORS = false
|
||||
|
||||
|
||||
[mypy]
|
||||
# Typing tests is low priority, but enabling type checking on the
|
||||
# untyped test functions (using `--check-untyped-defs`) is still
|
||||
|
|
|
@ -15,4 +15,4 @@ cloudpickle>=1.3
|
|||
pytorch-lightning>=1.0
|
||||
scikit-learn>0.22.1
|
||||
scikit-image>0.17.1
|
||||
nltk>=3.3
|
||||
nltk>=3.3
|
||||
|
|
Загрузка…
Ссылка в новой задаче