mirror of
https://github.com/thegeeklab/ansible-later.git
synced 2024-11-25 06:10:42 +00:00
chore(devel): fix pytest config and use global config in ci (#56)
This commit is contained in:
parent
0c6df867ca
commit
b07bc7c05b
@ -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',
|
||||||
],
|
],
|
||||||
|
10
.drone.yml
10
.drone.yml
@ -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
|
||||||
|
|
||||||
...
|
...
|
||||||
|
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user