chore(devel): fix pytest config and use global config in ci (#56)

This commit is contained in:
Robert Kaussow 2021-01-01 16:28:55 +01:00 committed by GitHub
parent 0c6df867ca
commit b07bc7c05b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 7 deletions

View File

@ -7,7 +7,7 @@ local PythonVersion(pyversion='3.6') = {
commands: [ commands: [
'pip install poetry poetry-dynamic-versioning -qq', 'pip install poetry poetry-dynamic-versioning -qq',
'poetry install -q -E ansible-base', 'poetry install -q -E ansible-base',
'poetry run pytest ansiblelater --cov=ansiblelater --cov-append --no-cov-on-fail', 'poetry run pytest',
'poetry version', 'poetry version',
'poetry run ansible-later --help', 'poetry run ansible-later --help',
], ],

View File

@ -55,7 +55,7 @@ steps:
commands: commands:
- pip install poetry poetry-dynamic-versioning -qq - pip install poetry poetry-dynamic-versioning -qq
- poetry install -q -E ansible-base - poetry install -q -E ansible-base
- poetry run pytest ansiblelater --cov=ansiblelater --cov-append --no-cov-on-fail - poetry run pytest
- poetry version - poetry version
- poetry run ansible-later --help - poetry run ansible-later --help
environment: environment:
@ -68,7 +68,7 @@ steps:
commands: commands:
- pip install poetry poetry-dynamic-versioning -qq - pip install poetry poetry-dynamic-versioning -qq
- poetry install -q -E ansible-base - poetry install -q -E ansible-base
- poetry run pytest ansiblelater --cov=ansiblelater --cov-append --no-cov-on-fail - poetry run pytest
- poetry version - poetry version
- poetry run ansible-later --help - poetry run ansible-later --help
environment: environment:
@ -81,7 +81,7 @@ steps:
commands: commands:
- pip install poetry poetry-dynamic-versioning -qq - pip install poetry poetry-dynamic-versioning -qq
- poetry install -q -E ansible-base - poetry install -q -E ansible-base
- poetry run pytest ansiblelater --cov=ansiblelater --cov-append --no-cov-on-fail - poetry run pytest
- poetry version - poetry version
- poetry run ansible-later --help - poetry run ansible-later --help
environment: environment:
@ -94,7 +94,7 @@ steps:
commands: commands:
- pip install poetry poetry-dynamic-versioning -qq - pip install poetry poetry-dynamic-versioning -qq
- poetry install -q -E ansible-base - poetry install -q -E ansible-base
- poetry run pytest ansiblelater --cov=ansiblelater --cov-append --no-cov-on-fail - poetry run pytest
- poetry version - poetry version
- poetry run ansible-later --help - poetry run ansible-later --help
environment: environment:
@ -676,6 +676,6 @@ depends_on:
--- ---
kind: signature kind: signature
hmac: 7cc52c7f4b527cdcc18a460dac532cc3a207a09f75a6bdd92a114492b002dffb hmac: e7ac87d93823a4609173c9629e8e975b60128a7526b3eb5417f7d93ede9d7049
... ...

View File

@ -91,7 +91,7 @@ sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
skip_glob = ["**/.env*", "**/env/*", "**/docs/*"] skip_glob = ["**/.env*", "**/env/*", "**/docs/*"]
[tool.pytest.ini_options] [tool.pytest.ini_options]
addopts = "--cov=ansiblelater --cov-report xml:coverage.xml --cov-append --no-cov-on-fail" addopts = "ansiblelater --cov=ansiblelater --cov-report=xml:coverage.xml --cov-report=term --cov-append --no-cov-on-fail"
filterwarnings = [ filterwarnings = [
"ignore::FutureWarning", "ignore::FutureWarning",
"ignore:.*collections.*:DeprecationWarning", "ignore:.*collections.*:DeprecationWarning",