Unverified Commit 141e01fb authored by Cunxiao Ni's avatar Cunxiao Ni Committed by GitHub
Browse files

[CI] Adds pytest-durations for test timing (#782)

* [Ci] Adds pytest-durations for test timing

Adds `pytest-durations` to the test requirements and configures pytest to display test durations.

This helps in identifying slow-running tests and optimizing the test suite for faster feedback.

* add amd ci durations

* Removes flash_attn installation from CI
parent b66f9aae
...@@ -41,7 +41,6 @@ jobs: ...@@ -41,7 +41,6 @@ jobs:
python -m pip install --upgrade pip --no-user python -m pip install --upgrade pip --no-user
[[ -f requirements-test.txt ]] && \ [[ -f requirements-test.txt ]] && \
PIP_NO_BUILD_ISOLATION=1 pip install -r requirements-test.txt --no-user PIP_NO_BUILD_ISOLATION=1 pip install -r requirements-test.txt --no-user
pip install flash_attn==2.5.8 --no-user --no-build-isolation
touch "$MARKER" touch "$MARKER"
fi fi
...@@ -116,4 +115,4 @@ jobs: ...@@ -116,4 +115,4 @@ jobs:
source "${{ runner.tool_cache }}/${{ env.VENV_DIR }}/bin/activate" source "${{ runner.tool_cache }}/${{ env.VENV_DIR }}/bin/activate"
cd testing/python/amd cd testing/python/amd
unset PYTHONPATH unset PYTHONPATH
python -m pytest -v test_tilelang_test_amd.py python -m pytest -v test_tilelang_test_amd.py --durations=0
\ No newline at end of file \ No newline at end of file
...@@ -111,11 +111,11 @@ jobs: ...@@ -111,11 +111,11 @@ jobs:
source "${{ runner.tool_cache }}/${{ env.VENV_DIR }}/bin/activate" source "${{ runner.tool_cache }}/${{ env.VENV_DIR }}/bin/activate"
cd examples cd examples
unset PYTHONPATH unset PYTHONPATH
python -m pytest -n 4 **/test*.py -v -r fE python -m pytest -n 4 **/test*.py -v -r fE --durations=0
- name: Run tests - name: Run tests
run: | run: |
source "${{ runner.tool_cache }}/${{ env.VENV_DIR }}/bin/activate" source "${{ runner.tool_cache }}/${{ env.VENV_DIR }}/bin/activate"
cd testing/python cd testing/python
unset PYTHONPATH unset PYTHONPATH
python -m pytest -n 4 -v -r fE python -m pytest -n 4 -v -r fE --durations=0
...@@ -12,6 +12,7 @@ dtlib ...@@ -12,6 +12,7 @@ dtlib
numpy>=1.23.5 numpy>=1.23.5
pytest>=6.2.4 pytest>=6.2.4
pytest_xdist>=2.2.1 pytest_xdist>=2.2.1
pytest-durations
packaging>=21.0 packaging>=21.0
PyYAML PyYAML
tqdm>=4.62.3 tqdm>=4.62.3
......
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