Skip to content

Commit

Permalink
fix: trying uv run instead
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanleomk committed Nov 7, 2024
1 parent 3e63bc6 commit 9f43255
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9f43255

Please sign in to comment.