From 5fb490aba66324fff2c1006a88783e5bcf2ce54e Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Thu, 29 Feb 2024 18:21:30 +0000 Subject: [PATCH] Use the new --system flag for uv in `test.yml` (#200) --- .github/workflows/test.yml | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c1edc0d9..201e7653 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -62,17 +62,8 @@ jobs: - name: Install uv (Unix) if: ${{ runner.os != 'Windows' }} run: curl -LsSf https://astral.sh/uv/install.sh | sh - - name: Create and activate a virtual environment - shell: bash - # uv doesn't (yet) allow us to install packages globally; - # we have to create and activate a virtual environment - run: | - uv venv .venv - echo "VIRTUAL_ENV=.venv" >> $GITHUB_ENV - echo "$PWD/.venv/bin" >> $GITHUB_PATH - echo "$GITHUB_WORKSPACE\\.venv\\Scripts" >> $GITHUB_PATH - name: Install dependencies - run: uv pip install -e ".[pytest]" + run: uv pip install -e ".[pytest]" --system - run: uv pip freeze - name: Run tests under coverage run: |