Skip to content

Commit

Permalink
ci: fix ci test to also use uv
Browse files Browse the repository at this point in the history
laszukdawid committed Dec 24, 2024
1 parent 84f599c commit a100b0c
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
@@ -12,18 +12,23 @@ jobs:
build-n-test:
runs-on: ubuntu-latest

strategy:
matrix:
python-version: [3.8, 3.9]
# strategy:
# matrix:
# python-version: [3.8, 3.9]

steps:
- uses: actions/checkout@v2
- name: Running Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install test dependencies
run: |
pip install -e .[test]
# Latest on 2024-12-24
version: "0.5.11"
- name: "Set up Python"
uses: actions/setup-python@v5
with:
# Using pinned version
# TODO: Do matrix for supported versions
python-version-file: ".python-version"
- name: Install dependencies
run: uv sync --all-extras --dev
- name: Run tests
run: pytest
run: uv run pytest

0 comments on commit a100b0c

Please sign in to comment.