From cba40f4a7a8111f68b8c075b033786e2e18762b6 Mon Sep 17 00:00:00 2001 From: Jordan Cook Date: Wed, 22 Jan 2025 13:52:32 -0600 Subject: [PATCH] Use python distributions provided by uv instead of actions/setup-python --- .github/workflows/build.yml | 9 ++++----- .github/workflows/deploy.yml | 3 --- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 13544c96..8c1b5100 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,17 +21,16 @@ jobs: python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13'] steps: - # Install prereqs and dependencies, with caching + # Install dependencies, with caching - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - uses: astral-sh/setup-uv@v5 with: enable-cache: true cache-dependency-glob: uv.lock - name: Install dependencies - run: uv sync + run: | + uv python install ${{ matrix.python-version }} + uv sync # Run tests with coverage report - name: Run tests diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 005e0817..2a2d6628 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -22,9 +22,6 @@ jobs: id-token: write steps: - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: - python-version: '3.13' - uses: astral-sh/setup-uv@v5 - name: Set pre-release version