ci: switch to new codecov uploader (#393)

This commit is contained in:
Robert Kaussow 2023-04-17 16:09:48 +02:00 committed by GitHub
parent e58de90d69
commit 006360cc2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 11 deletions

View File

@ -81,14 +81,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: [
'python37-pytest', 'python37-pytest',

View File

@ -120,14 +120,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:
- python37-pytest - python37-pytest
- python38-pytest - python38-pytest
@ -449,6 +447,6 @@ depends_on:
--- ---
kind: signature kind: signature
hmac: 90ec9fda47481ade8b36802ec1c9ff733ae7e77ec7b0b7b7d916de7aa1b7578f hmac: c738c9bc34f7be21d69926ddc23004af9f55e162b8221423e70008c6441c653c
... ...

View File

@ -70,8 +70,7 @@ skip_glob = ["**/.env*", "**/env/*", "**/.venv/*", "**/docs/*"]
addopts = "prometheuspvesd --cov=prometheuspvesd --cov-report=xml:coverage.xml --cov-report=term --no-cov-on-fail" addopts = "prometheuspvesd --cov=prometheuspvesd --cov-report=xml:coverage.xml --cov-report=term --no-cov-on-fail"
filterwarnings = [ filterwarnings = [
"ignore::FutureWarning", "ignore::FutureWarning",
"ignore:.*distutils.*:DeprecationWarning", "ignore::DeprecationWarning",
"ignore:.*collections.*:DeprecationWarning",
"ignore:.*pep8.*:FutureWarning", "ignore:.*pep8.*:FutureWarning",
] ]