mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-19 12:38:23 +06:00
Use -v
for pytest
on CircleCI (#28840)
use -v in pytest Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
parent
a7cb92aa03
commit
f497795948
@ -32,7 +32,7 @@ COMMON_ENV_VARIABLES = {
|
|||||||
"RUN_PT_FLAX_CROSS_TESTS": False,
|
"RUN_PT_FLAX_CROSS_TESTS": False,
|
||||||
}
|
}
|
||||||
# Disable the use of {"s": None} as the output is way too long, causing the navigation on CircleCI impractical
|
# Disable the use of {"s": None} as the output is way too long, causing the navigation on CircleCI impractical
|
||||||
COMMON_PYTEST_OPTIONS = {"max-worker-restart": 0, "dist": "loadfile"}
|
COMMON_PYTEST_OPTIONS = {"max-worker-restart": 0, "dist": "loadfile", "v": None}
|
||||||
DEFAULT_DOCKER_IMAGE = [{"image": "cimg/python:3.8.12"}]
|
DEFAULT_DOCKER_IMAGE = [{"image": "cimg/python:3.8.12"}]
|
||||||
|
|
||||||
|
|
||||||
@ -227,7 +227,7 @@ class CircleCIJob:
|
|||||||
# failure.
|
# failure.
|
||||||
test_command = f"({test_command}) || true"
|
test_command = f"({test_command}) || true"
|
||||||
else:
|
else:
|
||||||
test_command += " || true"
|
test_command = f"({test_command} | tee tests_output.txt) || true"
|
||||||
steps.append({"run": {"name": "Run tests", "command": test_command}})
|
steps.append({"run": {"name": "Run tests", "command": test_command}})
|
||||||
|
|
||||||
# Deal with errors
|
# Deal with errors
|
||||||
|
Loading…
Reference in New Issue
Block a user