Skip to content

Commit 716268b

Browse files
Use uv run --no-sync in GitHub Actions
Add --no-sync flag to uv run commands to prevent reinstalling editable workspace packages after installing built wheel artifacts. This ensures tests run against the actual built distributions rather than the editable workspace versions. Updated: - python-tests.yml: uv run --no-sync pytest - api-check.yml: uv run --no-sync python
1 parent 4b1feba commit 716268b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/api-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ jobs:
4646
run: |
4747
echo "Comparing current code against tag: ${{ steps.latest-tag.outputs.tag }}"
4848
# Use local check_api.py script which includes griffe-public-wildcard-imports extension
49-
uv run python setuptools-scm/check_api.py --against ${{ steps.latest-tag.outputs.tag }}
49+
uv run --no-sync python setuptools-scm/check_api.py --against ${{ steps.latest-tag.outputs.tag }}

.github/workflows/python-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ jobs:
132132
# this hopefully helps with os caches, hg init sometimes gets 20s timeouts
133133
- run: hg version
134134
- name: Run tests for both packages
135-
run: uv run pytest setuptools-scm/testing_scm/ vcs-versioning/testing_vcs/
135+
run: uv run --no-sync pytest setuptools-scm/testing_scm/ vcs-versioning/testing_vcs/
136136
timeout-minutes: 25
137137

138138
dist_upload:

0 commit comments

Comments
 (0)