From d70fc729af8b46f6dcd2da85d1cccefa92e498c8 Mon Sep 17 00:00:00 2001 From: James Briggs <35938317+jamescalam@users.noreply.github.com> Date: Fri, 14 Feb 2025 16:46:19 +0400 Subject: [PATCH] fix: python version --- .github/workflows/lint.yml | 13 +++++++------ .github/workflows/test.yml | 6 +++--- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 8815bb84..55cf8463 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -17,16 +17,17 @@ jobs: uses: actions/cache@v4 with: path: ~/.uv - key: ${{ runner.os }}-uv-${{ hashFiles('**/uv.lock') }} + key: ${{ runner.os }}-uv-${{ hashFiles('**/uv.lock') }}-${{ matrix.python-version }} restore-keys: | - ${{ runner.os }}-uv- + ${{ runner.os }}-uv-${{ matrix.python-version }} - name: Install uv run: | curl -LsSf https://astral.sh/uv/install.sh | sh - - name: Set up Python ${{ matrix.python-version }} - run: uv venv --python 3.13 - - name: Install dependencies - run: uv pip install .[dev] + uv venv --python 3.13 + uv pip install .[dev] + with: + cache-key: ${{ runner.os }}-uv-${{ hashFiles('**/uv.lock') }}-${{ matrix.python-version }} + cache-name: uv - name: Analyzing the code with our lint run: | make lint diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 11fd5436..b9e8ef18 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,9 +29,9 @@ jobs: uses: actions/cache@v4 with: path: ~/.uv - key: ${{ runner.os }}-uv-${{ hashFiles('**/uv.lock') }} + key: ${{ runner.os }}-uv-${{ hashFiles('**/uv.lock') }}-${{ matrix.python-version }} restore-keys: | - ${{ runner.os }}-uv- + ${{ runner.os }}-uv-${{ matrix.python-version }} - name: Wait for Pinecone service to start run: | @@ -42,7 +42,7 @@ jobs: run: | curl -LsSf https://astral.sh/uv/install.sh | sh - name: Set up Python ${{ matrix.python-version }} - run: uv venv --python 3.13 + run: uv venv --python ${{ matrix.python-version }} # only needed for local testing # - name: Add Poetry to PATH -- GitLab