Skip to content

Commit 2ad016d

Browse files
jackgerritssonichi
andauthored
Print slow tests in CI (#2082)
Co-authored-by: Chi Wang <[email protected]>
1 parent 7739632 commit 2ad016d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/build.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,16 @@ jobs:
5757
- name: Test with pytest skipping openai tests
5858
if: matrix.python-version != '3.10' && matrix.os == 'ubuntu-latest'
5959
run: |
60-
pytest test --skip-openai
60+
pytest test --skip-openai --durations=10 --durations-min=1.0
6161
- name: Test with pytest skipping openai and docker tests
6262
if: matrix.python-version != '3.10' && matrix.os != 'ubuntu-latest'
6363
run: |
64-
pytest test --skip-openai --skip-docker
64+
pytest test --skip-openai --skip-docker --durations=10 --durations-min=1.0
6565
- name: Coverage
6666
if: matrix.python-version == '3.10'
6767
run: |
6868
pip install -e .[test,redis]
69-
coverage run -a -m pytest test --ignore=test/agentchat/contrib --skip-openai
69+
coverage run -a -m pytest test --ignore=test/agentchat/contrib --skip-openai --durations=10 --durations-min=1.0
7070
coverage xml
7171
- name: Upload coverage to Codecov
7272
if: matrix.python-version == '3.10'

.github/workflows/openai.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
AZURE_OPENAI_API_BASE: ${{ secrets.AZURE_OPENAI_API_BASE }}
6464
OAI_CONFIG_LIST: ${{ secrets.OAI_CONFIG_LIST }}
6565
run: |
66-
coverage run -a -m pytest test --ignore=test/agentchat/contrib
66+
coverage run -a -m pytest test --ignore=test/agentchat/contrib --durations=10 --durations-min=1.0
6767
coverage xml
6868
- name: Coverage and check notebook outputs
6969
if: matrix.python-version != '3.9'
@@ -75,7 +75,7 @@ jobs:
7575
OAI_CONFIG_LIST: ${{ secrets.OAI_CONFIG_LIST }}
7676
run: |
7777
pip install nbconvert nbformat ipykernel
78-
coverage run -a -m pytest test/test_notebook.py
78+
coverage run -a -m pytest test/test_notebook.py --durations=10 --durations-min=1.0
7979
coverage xml
8080
cat "$(pwd)/test/executed_openai_notebook_output.txt"
8181
- name: Upload coverage to Codecov

0 commit comments

Comments
 (0)