mirror of
https://github.com/thegeeklab/docker-tidy.git
synced 2024-11-22 04:00:40 +00:00
ci: switch to new codecov uploader (#508)
This commit is contained in:
parent
9232d91088
commit
5b55a2585c
@ -8,7 +8,7 @@ local PythonVersion(pyversion='3.7') = {
|
|||||||
'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',
|
'poetry install',
|
||||||
'poetry run pytest dockertidy --cov=dockertidy --cov-append --no-cov-on-fail',
|
'poetry run pytest --cov-append',
|
||||||
'poetry version',
|
'poetry version',
|
||||||
'poetry run docker-tidy --help',
|
'poetry run docker-tidy --help',
|
||||||
],
|
],
|
||||||
@ -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',
|
||||||
|
18
.drone.yml
18
.drone.yml
@ -55,7 +55,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
|
- poetry install
|
||||||
- poetry run pytest dockertidy --cov=dockertidy --cov-append --no-cov-on-fail
|
- poetry run pytest --cov-append
|
||||||
- poetry version
|
- poetry version
|
||||||
- poetry run docker-tidy --help
|
- poetry run docker-tidy --help
|
||||||
environment:
|
environment:
|
||||||
@ -69,7 +69,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
|
- poetry install
|
||||||
- poetry run pytest dockertidy --cov=dockertidy --cov-append --no-cov-on-fail
|
- poetry run pytest --cov-append
|
||||||
- poetry version
|
- poetry version
|
||||||
- poetry run docker-tidy --help
|
- poetry run docker-tidy --help
|
||||||
environment:
|
environment:
|
||||||
@ -83,7 +83,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
|
- poetry install
|
||||||
- poetry run pytest dockertidy --cov=dockertidy --cov-append --no-cov-on-fail
|
- poetry run pytest --cov-append
|
||||||
- poetry version
|
- poetry version
|
||||||
- poetry run docker-tidy --help
|
- poetry run docker-tidy --help
|
||||||
environment:
|
environment:
|
||||||
@ -97,7 +97,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
|
- poetry install
|
||||||
- poetry run pytest dockertidy --cov=dockertidy --cov-append --no-cov-on-fail
|
- poetry run pytest --cov-append
|
||||||
- poetry version
|
- poetry version
|
||||||
- poetry run docker-tidy --help
|
- poetry run docker-tidy --help
|
||||||
environment:
|
environment:
|
||||||
@ -111,7 +111,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
|
- poetry install
|
||||||
- poetry run pytest dockertidy --cov=dockertidy --cov-append --no-cov-on-fail
|
- poetry run pytest --cov-append
|
||||||
- poetry version
|
- poetry version
|
||||||
- poetry run docker-tidy --help
|
- poetry run docker-tidy --help
|
||||||
environment:
|
environment:
|
||||||
@ -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: 8b6ef6a4937443a1b191e8af09d98bdc070e1d4fc636d6927160eea1c73330b0
|
hmac: 8b699c3cf83d89ee17133cca290a99a23af0691c22d79f963b92cb69416ea427
|
||||||
|
|
||||||
...
|
...
|
||||||
|
@ -81,10 +81,10 @@ sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
|
|||||||
skip_glob = ["**/.env*", "**/env/*", "**/.venv/*", "**/docs/*"]
|
skip_glob = ["**/.env*", "**/env/*", "**/.venv/*", "**/docs/*"]
|
||||||
|
|
||||||
[tool.pytest.ini_options]
|
[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 = [
|
filterwarnings = [
|
||||||
"ignore::FutureWarning",
|
"ignore::FutureWarning",
|
||||||
"ignore:.*collections.*:DeprecationWarning",
|
"ignore::DeprecationWarning",
|
||||||
"ignore:.*pep8.*:FutureWarning",
|
"ignore:.*pep8.*:FutureWarning",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user