Skip to content

Commit

Permalink
Port Python tests workflow to uv (#2129)
Browse files Browse the repository at this point in the history
* Clean up tasks

* Update precommit and run on files

* Use uv for workflow
  • Loading branch information
pamelafox authored Nov 7, 2024
1 parent 2c723d6 commit 009d5e1
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/python-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,21 @@ jobs:
matrix:
os: ["ubuntu-20.04", "windows-latest"]
python_version: ["3.9", "3.10", "3.11", "3.12"]
env:
UV_SYSTEM_PYTHON: 1
steps:
- uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python_version }}
architecture: x64
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
version: "0.4.20"
cache-dependency-glob: "requirements**.txt"
- name: Setup node
uses: actions/setup-node@v4
with:
Expand All @@ -44,8 +52,7 @@ jobs:
npm run build
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
uv pip install -r requirements-dev.txt
- name: Lint with ruff
run: ruff check .
- name: Check types with mypy
Expand Down

0 comments on commit 009d5e1

Please sign in to comment.