Skip to content

Commit 3499d32

Browse files
ci: migrate api-check workflow to use uv instead of pip
The griffe API check was failing due to pip install issues. This commit updates the workflow to use uv for dependency management, which is already used in the main test workflow. Changes: - Added astral-sh/setup-uv@v6 action to install uv - Replaced 'pip install' commands with 'uv sync --group test' and 'uv pip install griffe' - Updated griffe command to use 'uv run griffe' for proper environment execution This ensures consistent dependency resolution and fixes the installation failures.
1 parent db199f7 commit 3499d32

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/api-check.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,20 @@ jobs:
2828
with:
2929
python-version: '3.11'
3030

31+
- name: Install the latest version of uv
32+
uses: astral-sh/setup-uv@v6
33+
3134
- name: Install dependencies
3235
run: |
33-
pip install -U pip setuptools
34-
pip install -e .[test]
35-
pip install griffe
36+
uv sync --group test
37+
uv pip install griffe
3638
3739
- name: Run griffe API check
3840
id: griffe-check
3941
continue-on-error: true
4042
run: |
4143
echo "Running griffe API stability check..."
42-
if griffe check setuptools_scm -ssrc -f github; then
44+
if uv run griffe check setuptools_scm -ssrc -f github; then
4345
echo "api_check_result=success" >> $GITHUB_OUTPUT
4446
echo "exit_code=0" >> $GITHUB_OUTPUT
4547
else

0 commit comments

Comments
 (0)