11name : CI Test on AMD
22on : [pull_request]
33
4+ concurrency :
5+ group : " ${{ github.workflow }}-${{ github.ref }}"
6+ cancel-in-progress : ${{ github.event_name == 'pull_request' }}
7+
48env :
59 PYTHON_VERSION : ' 3.12'
610 VENV_DIR : tilelang_ci
@@ -12,16 +16,16 @@ jobs:
1216 runs-on : [self-hosted, amd, gpu]
1317
1418 permissions :
15- contents : write
19+ contents : write
1620
1721 steps :
1822 - name : Checkout repository
19- uses : actions/checkout@v4
23+ uses : actions/checkout@v5
2024 with :
2125 fetch-depth : 0
2226
2327 - name : Set up Python
24- uses : actions/setup-python@v2
28+ uses : actions/setup-python@v6
2529 with :
2630 python-version : ${{ env.PYTHON_VERSION }}
2731
@@ -68,14 +72,14 @@ jobs:
6872 contents : read
6973 steps :
7074 - name : Checkout repository
71- uses : actions/checkout@v4
75+ uses : actions/checkout@v5
7276 with :
7377 fetch-depth : 1
7478 repository : ${{ github.event.pull_request.head.repo.full_name }}
7579 ref : ${{ github.event.pull_request.head.ref }}
7680
7781 - name : Set up Python
78- uses : actions/setup-python@v2
82+ uses : actions/setup-python@v6
7983 with :
8084 python-version : ${{ env.PYTHON_VERSION }}
8185
8589 set -e
8690 REQS_HASH=$(sha256sum requirements-rocm.txt | cut -d ' ' -f 1)
8791 MARKER="${{ runner.tool_cache }}/.venv_marker_${{ env.PYTHON_VERSION }}_${REQS_HASH:0:8}"
88-
92+
8993 echo "Installing requirements"
9094 if [[ -f "$MARKER" ]] && [[ -f "${{ runner.tool_cache }}/${{ env.VENV_DIR }}/bin/activate" ]]; then
9195 echo "venv exists and hash matches – reuse it"
@@ -117,4 +121,4 @@ jobs:
117121 source "${{ runner.tool_cache }}/${{ env.VENV_DIR }}/bin/activate"
118122 cd testing/python/amd
119123 unset PYTHONPATH
120- python -m pytest -v test_tilelang_test_amd.py
124+ python -m pytest -v --cache-clear test_tilelang_test_amd.py
0 commit comments