Skip to content

Commit

Permalink
ci: use uv for python installation
Browse files Browse the repository at this point in the history
  • Loading branch information
juba committed Aug 28, 2024
1 parent fc6fb9a commit 21ca739
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,17 @@ jobs:
npm ci
npm ci --workspaces
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"

- name: Install uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh

- name: Generate pip lock file
run: uv pip compile pyproject.toml -o requirements.txt
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}

- name: Install Python dependencies
run: |
pip install -r requirements.txt
run: uv sync

- name: Run pytest
run: pytest
run: uv run pytest

JS-tests:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 21ca739

Please sign in to comment.