Skip to content

Commit

Permalink
Print slow tests in CI (#2082)
Browse files Browse the repository at this point in the history
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
  • Loading branch information
jackgerrits and sonichi committed Mar 20, 2024
1 parent 7739632 commit 2ad016d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,16 @@ jobs:
- name: Test with pytest skipping openai tests
if: matrix.python-version != '3.10' && matrix.os == 'ubuntu-latest'
run: |
pytest test --skip-openai
pytest test --skip-openai --durations=10 --durations-min=1.0
- name: Test with pytest skipping openai and docker tests
if: matrix.python-version != '3.10' && matrix.os != 'ubuntu-latest'
run: |
pytest test --skip-openai --skip-docker
pytest test --skip-openai --skip-docker --durations=10 --durations-min=1.0
- name: Coverage
if: matrix.python-version == '3.10'
run: |
pip install -e .[test,redis]
coverage run -a -m pytest test --ignore=test/agentchat/contrib --skip-openai
coverage run -a -m pytest test --ignore=test/agentchat/contrib --skip-openai --durations=10 --durations-min=1.0
coverage xml
- name: Upload coverage to Codecov
if: matrix.python-version == '3.10'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/openai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
AZURE_OPENAI_API_BASE: ${{ secrets.AZURE_OPENAI_API_BASE }}
OAI_CONFIG_LIST: ${{ secrets.OAI_CONFIG_LIST }}
run: |
coverage run -a -m pytest test --ignore=test/agentchat/contrib
coverage run -a -m pytest test --ignore=test/agentchat/contrib --durations=10 --durations-min=1.0
coverage xml
- name: Coverage and check notebook outputs
if: matrix.python-version != '3.9'
Expand All @@ -75,7 +75,7 @@ jobs:
OAI_CONFIG_LIST: ${{ secrets.OAI_CONFIG_LIST }}
run: |
pip install nbconvert nbformat ipykernel
coverage run -a -m pytest test/test_notebook.py
coverage run -a -m pytest test/test_notebook.py --durations=10 --durations-min=1.0
coverage xml
cat "$(pwd)/test/executed_openai_notebook_output.txt"
- name: Upload coverage to Codecov
Expand Down

0 comments on commit 2ad016d

Please sign in to comment.