From 4183c4774cbba87122bf38ae70e5b4478b8c3750 Mon Sep 17 00:00:00 2001 From: Rehan Khwaja Date: Sun, 24 Nov 2024 18:18:20 -0800 Subject: [PATCH] Use setup-uv in place of setup-python --- .github/workflows/ci.yml | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2958376..c526547 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,19 +43,16 @@ jobs: python-version: [3.8, 3.9, "3.10", "3.11", "3.12", "3.13"] steps: - - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} + - name: Checkout repository + uses: actions/checkout@v4 - name: Install uv - uses: yezz123/setup-uv@v4 + uses: astral-sh/setup-uv@v3 + - name: Set up Python ${{ matrix.python-version }} + run: uv python install ${{ matrix.python-version }} - name: Dependencies - run: | - uv sync --no-cache + run: uv sync --no-cache - name: Lint - run: | - uv run poe lint + run: uv run poe lint - name: Tests env: GOOGLEDRIVEFS_TEST_CLIENT_ID: ${{ secrets.GOOGLEDRIVEFS_TEST_CLIENT_ID }} @@ -64,7 +61,7 @@ jobs: NGROK_AUTH_TOKEN: ${{ secrets.NGROK_AUTH_TOKEN }} if: ${{needs.secrets.outputs.valid}} == 'true' run: | - if python --version | grep -q 'Python 3.13' ; then + if uv run python --version | grep -q 'Python 3.13' ; then uv run poe test fi - name: Coverage