Skip to content

Commit

Permalink
Use the new --system flag for uv in test.yml (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaygood authored Feb 29, 2024
1 parent dbc60ae commit 5fb490a
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit 5fb490a

Please sign in to comment.