From 261275865d41c90a3520362a0a4d6e16d34e257e Mon Sep 17 00:00:00 2001 From: Sean Stewart Date: Sat, 8 Feb 2025 17:59:41 -0500 Subject: [PATCH] ci: Re-work env checkout for uv in CI --- .github/actions/bootstrap-environ/action.yml | 10 ++++++---- .github/workflows/docs.yml | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/actions/bootstrap-environ/action.yml b/.github/actions/bootstrap-environ/action.yml index 3c6ed09..cea690f 100644 --- a/.github/actions/bootstrap-environ/action.yml +++ b/.github/actions/bootstrap-environ/action.yml @@ -7,10 +7,6 @@ inputs: runner: description: The Runner to build your environment on. -env: - # Configure a relative location for the uv cache - UV_CACHE_DIR: ~/.cache/uv - runs: using: composite steps: @@ -20,6 +16,12 @@ runs: git config pull.ff true shell: bash - uses: astral-sh/setup-uv@v5 + env: + # Configure a relative location for the uv cache + UV_CACHE_DIR: ~/.cache/uv + with: + python-version: ${{ matrix.python-version }} + - uses: actions/setup-python@v5 with: python-version: ${{ inputs.python-version }} - uses: actions/cache@v4 diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 0bb4e72..5a4cf1f 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -23,7 +23,7 @@ jobs: fail-fast: false matrix: os: [ ubuntu-latest ] - python-version: [ "3.x" ] + python-version: [ "3.12" ] steps: - uses: actions/create-github-app-token@v1 id: app-token