Skip to content

Commit 25668e7

Browse files
njzjz-botnjzjz
andauthored
chore(ci): use astral-sh/setup-uv action (#500)
Generated by the task: njzjz-bot/njzjz-bot#9. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Chores** - Updated workflow configuration for improved setup of the `uv` tool, enhancing installation efficiency and caching options. - Maintained compatibility across multiple environments while ensuring a seamless experience for users on non-Windows platforms. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
1 parent a009308 commit 25668e7

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,12 @@ jobs:
3131
uses: actions/setup-python@v5
3232
with:
3333
python-version: ${{ matrix.python-version }}
34-
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
35-
if: matrix.platform != 'windows-latest'
36-
- run: powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
37-
if: matrix.platform == 'windows-latest'
34+
- uses: astral-sh/setup-uv@v3
35+
with:
36+
enable-cache: true
37+
cache-dependency-glob: |
38+
**/requirements*.txt
39+
**/pyproject.toml
3840
- run: uv pip install --system .[test] coverage
3941
- name: Test
4042
run: |

0 commit comments

Comments
 (0)