Skip to content

Commit

Permalink
chore(ci): use astral-sh/setup-uv action (#500)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
njzjz-bot and njzjz authored Oct 5, 2024
1 parent a009308 commit 25668e7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
if: matrix.platform != 'windows-latest'
- run: powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
if: matrix.platform == 'windows-latest'
- uses: astral-sh/setup-uv@v3
with:
enable-cache: true
cache-dependency-glob: |
**/requirements*.txt
**/pyproject.toml
- run: uv pip install --system .[test] coverage
- name: Test
run: |
Expand Down

0 comments on commit 25668e7

Please sign in to comment.