Skip to content

Commit 67c2ff3

Browse files
committed
Fix GitHub Actions to avoid externally managed Python error
- Remove --system flag from all uv pip install commands - Use virtual environments properly in GitHub Actions - Fix compatibility with externally managed Python environments - Ensure workflows work on both local and CI environments - Update all workflow files: pythonpackage.yml, publish-to-test-pypi.yml, publish-to-live-pypi.yml, lint.yml
1 parent eec8989 commit 67c2ff3

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
enable-cache: true
2525

2626
- name: Install ruff
27-
run: uv pip install --system ruff
27+
run: uv pip install ruff
2828
- name: Run Ruff
2929
run: |
3030
ruff check json2xml
@@ -48,7 +48,7 @@ jobs:
4848
enable-cache: true
4949

5050
- name: Install mypy and types
51-
run: uv pip install --system mypy types-requests types-urllib3
51+
run: uv pip install mypy types-requests types-urllib3
5252
- name: mypy
5353
uses: liskin/gh-problem-matcher-wrap@v2
5454
with:

.github/workflows/publish-to-live-pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
enable-cache: true
2323

2424
- name: Install build dependencies
25-
run: uv pip install --system build
25+
run: uv pip install build
2626
- name: Build a binary wheel and a source tarball
2727
run: >-
2828
python -m

.github/workflows/publish-to-test-pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
enable-cache: true
2424

2525
- name: Install build dependencies
26-
run: uv pip install --system build
26+
run: uv pip install build
2727
- name: Build a binary wheel and a source tarball
2828
run: >-
2929
python -m

.github/workflows/pythonpackage.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ jobs:
5656
5757
- name: Install dependencies
5858
run: |
59-
uv pip install --system -e .
60-
uv pip install --system pytest pytest-xdist pytest-cov
59+
uv pip install -e .
60+
uv pip install pytest pytest-xdist pytest-cov
6161
6262
- name: Create coverage directory
6363
run: mkdir -p coverage/reports
@@ -107,8 +107,8 @@ jobs:
107107
108108
- name: Install dependencies
109109
run: |
110-
uv pip install --system -e .
111-
uv pip install --system ruff>=0.3.0
110+
uv pip install -e .
111+
uv pip install ruff>=0.3.0
112112
113113
- name: Run ruff
114114
run: ruff check json2xml tests
@@ -136,8 +136,8 @@ jobs:
136136
137137
- name: Install dependencies
138138
run: |
139-
uv pip install --system -e .
140-
uv pip install --system mypy>=1.0.0 types-setuptools
139+
uv pip install -e .
140+
uv pip install mypy>=1.0.0 types-setuptools
141141
142142
- name: Run mypy
143143
run: mypy json2xml tests
@@ -192,8 +192,8 @@ jobs:
192192
193193
- name: Install dependencies
194194
run: |
195-
uv pip install --system -e .
196-
uv pip install --system pytest pytest-xdist pytest-cov
195+
uv pip install -e .
196+
uv pip install pytest pytest-xdist pytest-cov
197197
198198
- name: Create coverage directory
199199
run: mkdir -p coverage/reports

0 commit comments

Comments
 (0)