-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(workflows): use uv to install dependencies in main workflow run
- Loading branch information
1 parent
b77c222
commit 22691d0
Showing
1 changed file
with
18 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,15 +62,31 @@ jobs: | |
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install uv installer 🌞 | ||
run: pipx install uv | ||
|
||
- name: Get uv cache directory | ||
id: uv-cache | ||
run: | | ||
echo "cache-dir=$(uv cache dir)\n" >> $GITHUB_OUTPUT | ||
- name: Setup uv Cache | ||
uses: actions/cache@v4 | ||
with: | ||
key: uv-${{ runner.os }}-${{ matrix.python-version }}-pdm | ||
path: ${{ steps.uv-cache.outputs.cache-dir }} | ||
|
||
- name: Setup PDM 📦 | ||
uses: pdm-project/[email protected] | ||
id: setup-pdm | ||
with: | ||
cache: true | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install Python Dependencies 📦 | ||
run: pdm install | ||
- name: Install Python Dependencies (using UV) 📦 | ||
run: | | ||
pdm export -f requirements.txt | ||
uv pip install -r requirements.txt --editable . | ||
- name: Check Python Formatting 🖌️ | ||
run: pdm run ruff check . | ||
|
@@ -89,9 +105,6 @@ jobs: | |
parallel: true | ||
flag-name: run-${{ matrix.os }}-python-${{ matrix.python-version }} | ||
|
||
- name: Install uv installer 🌞 | ||
run: pipx install uv | ||
|
||
- name: Build wheels 🛞 | ||
uses: pypa/[email protected] | ||
env: | ||
|