From 9f43255f5780d5f367e295700319af39f378bcbe Mon Sep 17 00:00:00 2001 From: Ivan Leo Date: Thu, 7 Nov 2024 18:19:31 +0800 Subject: [PATCH] fix: trying uv run instead --- .github/workflows/ci.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7d3aee8..8b99b40 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,16 +8,17 @@ jobs: - name: Install uv uses: astral-sh/setup-uv@v3 + with: + version: "0.4.30" + enable-cache: true - name: Set up Python run: uv python install - - name: activate virtual env - run: uv venv && source .venv/bin/activate - - - name: Install the project - run: uv sync --all-extras + - name: Create virtual environment and install dependencies + run: | + uv venv # Creates a virtual environment + uv sync --all-extras --dev # Installs dependencies into the .venv environment - name: Run tests - run: | - pytest tests/ + run: uv run pytest tests/ # Runs pytest within the uv-managed environment