Unverified Commit 805a202e authored by Stas Bekman's avatar Stas Bekman Committed by GitHub
Browse files

[CIs] report slow tests add --durations=0 to some pytest jobs (#7884)

* add --durations=50 to some pytest runs

* report all tests
parent 4eb61f8e
...@@ -84,7 +84,7 @@ jobs: ...@@ -84,7 +84,7 @@ jobs:
key: v0.3-{{ checksum "setup.py" }} key: v0.3-{{ checksum "setup.py" }}
paths: paths:
- '~/.cache/pip' - '~/.cache/pip'
- run: python -m pytest -n 8 --dist=loadfile -rA -s ./tests/ --cov | tee output.txt - run: python -m pytest -n 8 --dist=loadfile -rA -s ./tests/ --cov --durations=0 | tee output.txt
- run: codecov - run: codecov
- store_artifacts: - store_artifacts:
path: ~/transformers/output.txt path: ~/transformers/output.txt
......
...@@ -59,7 +59,7 @@ jobs: ...@@ -59,7 +59,7 @@ jobs:
RUN_SLOW: yes RUN_SLOW: yes
run: | run: |
source .env/bin/activate source .env/bin/activate
python -m pytest -n 1 --dist=loadfile -s ./tests/ python -m pytest -n 1 --dist=loadfile -s ./tests/ --durations=0
- name: Run examples tests on GPU - name: Run examples tests on GPU
env: env:
...@@ -69,7 +69,7 @@ jobs: ...@@ -69,7 +69,7 @@ jobs:
run: | run: |
source .env/bin/activate source .env/bin/activate
pip install -r examples/requirements.txt pip install -r examples/requirements.txt
python -m pytest -n 1 --dist=loadfile -s examples python -m pytest -n 1 --dist=loadfile -s examples --durations=0
run_all_tests_torch_and_tf_multiple_gpu: run_all_tests_torch_and_tf_multiple_gpu:
runs-on: [self-hosted, multi-gpu] runs-on: [self-hosted, multi-gpu]
...@@ -120,7 +120,7 @@ jobs: ...@@ -120,7 +120,7 @@ jobs:
RUN_SLOW: yes RUN_SLOW: yes
run: | run: |
source .env/bin/activate source .env/bin/activate
python -m pytest -n 1 --dist=loadfile -s ./tests/ python -m pytest -n 1 --dist=loadfile -s ./tests/ --durations=0
- name: Run examples tests on GPU - name: Run examples tests on GPU
env: env:
...@@ -130,4 +130,4 @@ jobs: ...@@ -130,4 +130,4 @@ jobs:
run: | run: |
source .env/bin/activate source .env/bin/activate
pip install -r examples/requirements.txt pip install -r examples/requirements.txt
python -m pytest -n 1 --dist=loadfile -s examples python -m pytest -n 1 --dist=loadfile -s examples --durations=0
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment