Skip to content

Commit

Permalink
CI: Use uv
Browse files Browse the repository at this point in the history
  • Loading branch information
ZedThree committed Oct 28, 2024
1 parent c667172 commit 7a4f480
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,19 @@ jobs:
with:
fetch-depth: 0
submodules: "recursive"

- name: Setup uv
id: setup-uv
uses: astral-sh/setup-uv@v3

- name: Print the installed version
run: echo "Installed uv version is ${{ steps.setup-uv.outputs.uv-version }}"

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install .[test]
run: uv pip install .[test]

- name: Test with pytest
run: |
pytest
run: uv run pytest

0 comments on commit 7a4f480

Please sign in to comment.