Skip to content

Commit

Permalink
ci: use uv to generate pip requirements file
Browse files Browse the repository at this point in the history
  • Loading branch information
juba committed Aug 28, 2024
1 parent fa0301b commit fc6fb9a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,15 @@ jobs:
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: Install Python dependencies
run: |
pip install -r uv.lock
pip install -r requirements.txt
- name: Run pytest
run: pytest
Expand Down

0 comments on commit fc6fb9a

Please sign in to comment.