ci: switch to new codecov uploader (#583)

This commit is contained in:
Robert Kaussow 2023-04-19 20:53:08 +02:00 committed by GitHub
parent 82c448ca2b
commit fb806086a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 14 deletions

View File

@ -8,7 +8,7 @@ local PythonVersion(pyversion='3.9') = {
'pip install poetry poetry-dynamic-versioning -qq', 'pip install poetry poetry-dynamic-versioning -qq',
'poetry config experimental.new-installer false', 'poetry config experimental.new-installer false',
'poetry install -E ansible-core', 'poetry install -E ansible-core',
'poetry run pytest', 'poetry run pytest --cov-append',
'poetry version', 'poetry version',
'poetry run ansible-later --help', 'poetry run ansible-later --help',
], ],
@ -78,14 +78,12 @@ local PipelineTest = {
PythonVersion(pyversion='3.11'), PythonVersion(pyversion='3.11'),
{ {
name: 'codecov', name: 'codecov',
image: 'python:3.11', image: 'thegeeklab/codecov',
environment: { environment: {
PY_COLORS: 1,
CODECOV_TOKEN: { from_secret: 'codecov_token' }, CODECOV_TOKEN: { from_secret: 'codecov_token' },
}, },
commands: [ commands: [
'pip install codecov -qq', 'codecov --nonZero',
'codecov --required -X gcov',
], ],
depends_on: [ depends_on: [
'python39-pytest', 'python39-pytest',

View File

@ -54,7 +54,7 @@ steps:
- pip install poetry poetry-dynamic-versioning -qq - pip install poetry poetry-dynamic-versioning -qq
- poetry config experimental.new-installer false - poetry config experimental.new-installer false
- poetry install -E ansible-core - poetry install -E ansible-core
- poetry run pytest - poetry run pytest --cov-append
- poetry version - poetry version
- poetry run ansible-later --help - poetry run ansible-later --help
environment: environment:
@ -68,7 +68,7 @@ steps:
- pip install poetry poetry-dynamic-versioning -qq - pip install poetry poetry-dynamic-versioning -qq
- poetry config experimental.new-installer false - poetry config experimental.new-installer false
- poetry install -E ansible-core - poetry install -E ansible-core
- poetry run pytest - poetry run pytest --cov-append
- poetry version - poetry version
- poetry run ansible-later --help - poetry run ansible-later --help
environment: environment:
@ -82,7 +82,7 @@ steps:
- pip install poetry poetry-dynamic-versioning -qq - pip install poetry poetry-dynamic-versioning -qq
- poetry config experimental.new-installer false - poetry config experimental.new-installer false
- poetry install -E ansible-core - poetry install -E ansible-core
- poetry run pytest - poetry run pytest --cov-append
- poetry version - poetry version
- poetry run ansible-later --help - poetry run ansible-later --help
environment: environment:
@ -91,14 +91,12 @@ steps:
- fetch - fetch
- name: codecov - name: codecov
image: python:3.11 image: thegeeklab/codecov
commands: commands:
- pip install codecov -qq - codecov --nonZero
- codecov --required -X gcov
environment: environment:
CODECOV_TOKEN: CODECOV_TOKEN:
from_secret: codecov_token from_secret: codecov_token
PY_COLORS: 1
depends_on: depends_on:
- python39-pytest - python39-pytest
- python310-pytest - python310-pytest
@ -418,6 +416,6 @@ depends_on:
--- ---
kind: signature kind: signature
hmac: 1bc7f62d74ce0afa031770f617ffda20b9719ed4489061c470476ca707d1275f hmac: 4fa3e44f6e23e8ef4ee2c7c7fba9609c1b337f30584db1db35fc7f2dd66d76a8
... ...

View File

@ -69,7 +69,7 @@ style = "semver"
vcs = "git" vcs = "git"
[tool.pytest.ini_options] [tool.pytest.ini_options]
addopts = "ansiblelater --cov=ansiblelater --cov-report=xml:coverage.xml --cov-report=term --cov-append --no-cov-on-fail" addopts = "ansiblelater --cov=ansiblelater --cov-report=xml:coverage.xml --cov-report=term --no-cov-on-fail"
filterwarnings = [ filterwarnings = [
"ignore::FutureWarning", "ignore::FutureWarning",
"ignore::DeprecationWarning", "ignore::DeprecationWarning",