ci: switch to new codecov uploader (#508)

This commit is contained in:
Robert Kaussow 2023-04-17 16:22:23 +02:00 committed by GitHub
parent 9232d91088
commit 5b55a2585c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 17 deletions

View File

@ -8,7 +8,7 @@ local PythonVersion(pyversion='3.7') = {
'pip install poetry poetry-dynamic-versioning -qq',
'poetry config experimental.new-installer false',
'poetry install',
'poetry run pytest dockertidy --cov=dockertidy --cov-append --no-cov-on-fail',
'poetry run pytest --cov-append',
'poetry version',
'poetry run docker-tidy --help',
],
@ -81,14 +81,12 @@ local PipelineTest = {
PythonVersion(pyversion='3.11'),
{
name: 'codecov',
image: 'python:3.11',
image: 'thegeeklab/codecov',
environment: {
PY_COLORS: 1,
CODECOV_TOKEN: { from_secret: 'codecov_token' },
},
commands: [
'pip install codecov -qq',
'codecov --required -X gcov',
'codecov --nonZero',
],
depends_on: [
'python37-pytest',

View File

@ -55,7 +55,7 @@ steps:
- pip install poetry poetry-dynamic-versioning -qq
- poetry config experimental.new-installer false
- poetry install
- poetry run pytest dockertidy --cov=dockertidy --cov-append --no-cov-on-fail
- poetry run pytest --cov-append
- poetry version
- poetry run docker-tidy --help
environment:
@ -69,7 +69,7 @@ steps:
- pip install poetry poetry-dynamic-versioning -qq
- poetry config experimental.new-installer false
- poetry install
- poetry run pytest dockertidy --cov=dockertidy --cov-append --no-cov-on-fail
- poetry run pytest --cov-append
- poetry version
- poetry run docker-tidy --help
environment:
@ -83,7 +83,7 @@ steps:
- pip install poetry poetry-dynamic-versioning -qq
- poetry config experimental.new-installer false
- poetry install
- poetry run pytest dockertidy --cov=dockertidy --cov-append --no-cov-on-fail
- poetry run pytest --cov-append
- poetry version
- poetry run docker-tidy --help
environment:
@ -97,7 +97,7 @@ steps:
- pip install poetry poetry-dynamic-versioning -qq
- poetry config experimental.new-installer false
- poetry install
- poetry run pytest dockertidy --cov=dockertidy --cov-append --no-cov-on-fail
- poetry run pytest --cov-append
- poetry version
- poetry run docker-tidy --help
environment:
@ -111,7 +111,7 @@ steps:
- pip install poetry poetry-dynamic-versioning -qq
- poetry config experimental.new-installer false
- poetry install
- poetry run pytest dockertidy --cov=dockertidy --cov-append --no-cov-on-fail
- poetry run pytest --cov-append
- poetry version
- poetry run docker-tidy --help
environment:
@ -120,14 +120,12 @@ steps:
- fetch
- name: codecov
image: python:3.11
image: thegeeklab/codecov
commands:
- pip install codecov -qq
- codecov --required -X gcov
- codecov --nonZero
environment:
CODECOV_TOKEN:
from_secret: codecov_token
PY_COLORS: 1
depends_on:
- python37-pytest
- python38-pytest
@ -449,6 +447,6 @@ depends_on:
---
kind: signature
hmac: 8b6ef6a4937443a1b191e8af09d98bdc070e1d4fc636d6927160eea1c73330b0
hmac: 8b699c3cf83d89ee17133cca290a99a23af0691c22d79f963b92cb69416ea427
...

View File

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