From 089d976ac80b0b26a6b02423d67d985ef364cd0d Mon Sep 17 00:00:00 2001 From: "njzjz-bot[bot]" <48687836+njzjz-bot@users.noreply.github.com> Date: Fri, 4 Oct 2024 23:07:48 -0400 Subject: [PATCH 1/2] chore(ci): use astral-sh/setup-uv action Generated by the task: https://github.com/njzjz-bot/njzjz-bot/issues/9. --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0d81ae8b..defe7b1a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,7 +31,7 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - - run: curl -LsSf https://astral.sh/uv/install.sh | sh + - uses: astral-sh/setup-uv@v3 with: enable-cache: true cache-dependency-glob: | **/requirements*.txt **/pyproject.toml if: matrix.platform != 'windows-latest' - run: powershell -c "irm https://astral.sh/uv/install.ps1 | iex" if: matrix.platform == 'windows-latest' From 229abf74b001726e6ce9094587452f7e6938e067 Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Fri, 4 Oct 2024 23:08:40 -0400 Subject: [PATCH 2/2] fix dependency --- .github/workflows/test.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index defe7b1a..e77b74ef 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,10 +31,12 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - - uses: astral-sh/setup-uv@v3 with: enable-cache: true cache-dependency-glob: | **/requirements*.txt **/pyproject.toml - 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: |