From 490855a181a308ad094558cde8ab98acf6d1fb62 Mon Sep 17 00:00:00 2001 From: Erik Aker Date: Fri, 30 Aug 2024 15:56:15 -0700 Subject: [PATCH] maybe this will work --- .github/workflows/ci.yaml | 11 +++++------ justfile | 4 ++-- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7533f90..3d9b30c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -28,13 +28,12 @@ jobs: with: tool: just - uses: "actions/checkout@v3" - - uses: "actions/setup-python@v4" - with: - python-version: "${{ matrix.python-version }}" - - name: "Install uv" - run: "pip install uv" + - name: Set up uv + # Install latest uv version using the installer + run: curl -LsSf https://astral.sh/uv/install.sh | sh + - name: "Run install deps" - run: "just bootstrap" + run: "just bootstrap ${{ matrix.python-version }}" - name: "Run code quality checks" run: "just check" - name: "Run tests" diff --git a/justfile b/justfile index f151f33..a5c1a8a 100644 --- a/justfile +++ b/justfile @@ -4,8 +4,8 @@ _default: just --list # Create a virtual environment and install dependencies -bootstrap: - uv venv --python 3.12 +bootstrap default="3.12": + uv venv --python {{default}} # Build the project as a package build *args: