Skip to content

Commit a1596fe

Browse files
committed
Added UV_SYSTEM_PYTHON environment variable to workflows
1 parent 7ac7796 commit a1596fe

11 files changed

Lines changed: 33 additions & 11 deletions

File tree

.github/workflows/black.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ permissions:
1212
jobs:
1313
black:
1414
runs-on: ubuntu-latest
15+
env:
16+
UV_SYSTEM_PYTHON: "1"
1517
steps:
1618
- uses: actions/checkout@v6
1719

@@ -22,7 +24,7 @@ jobs:
2224
enable-cache: true
2325

2426
- name: Install Black
25-
run: uv pip install --system "black>=24.0.0"
27+
run: uv pip install "black>=24.0.0"
2628

2729
- name: Check code formatting with Black
2830
run: |

.github/workflows/ci.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ jobs:
3636
python-version: ${{fromJson(needs.determine_version.outputs.matrix)}}
3737

3838
runs-on: ${{ matrix.platform }}
39+
env:
40+
UV_SYSTEM_PYTHON: "1"
3941

4042
steps:
4143
- uses: actions/checkout@v6
@@ -50,7 +52,7 @@ jobs:
5052

5153
# Install dependencies
5254
- name: Install dependencies
53-
run: uv pip install --system -e .[docs,test]
55+
run: uv pip install -e .[docs,test]
5456

5557
# Run spec tests without coverage for non Python 3.10
5658
- name: Run spec_test

.github/workflows/ci_cov.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
python-version: [ "3.10" ]
1818

1919
runs-on: ${{ matrix.platform }}
20+
env:
21+
UV_SYSTEM_PYTHON: "1"
2022

2123
steps:
2224
- uses: actions/checkout@v6
@@ -31,7 +33,7 @@ jobs:
3133

3234
# Install dependencies
3335
- name: Install dependencies
34-
run: uv pip install --system ruff -e .[docs,test]
36+
run: uv pip install ruff -e .[docs,test]
3537

3638
# Run ruff
3739
- name: Lint with ruff

.github/workflows/ci_windows.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
python-version: ["3.10", "3.11", "3.12"]
1515

1616
runs-on: ${{ matrix.platform }}
17+
env:
18+
UV_SYSTEM_PYTHON: "1"
1719

1820
steps:
1921
- uses: actions/checkout@v6
@@ -27,7 +29,7 @@ jobs:
2729
enable-cache: true
2830

2931
- name: Install dependencies
30-
run: uv pip install --system -e .[test]
32+
run: uv pip install -e .[test]
3133

3234
- name: Test with unittest
3335
env:

.github/workflows/codespell.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
codespell:
1515
name: Check for spelling errors
1616
runs-on: ubuntu-latest
17+
env:
18+
UV_SYSTEM_PYTHON: "1"
1719

1820
steps:
1921
- name: Checkout
@@ -26,7 +28,7 @@ jobs:
2628
enable-cache: true
2729

2830
- name: Install dependencies
29-
run: uv pip install --system codespell tomli
31+
run: uv pip install codespell tomli
3032

3133
- name: Run Codespell
3234
run: codespell .

.github/workflows/docs.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ concurrency:
1818
jobs:
1919
build:
2020
runs-on: ubuntu-latest
21+
env:
22+
UV_SYSTEM_PYTHON: "1"
2123
steps:
2224
- uses: actions/checkout@v6
2325
with:
@@ -30,7 +32,7 @@ jobs:
3032
enable-cache: true
3133

3234
- name: Install dependencies
33-
run: uv pip install --system -e .[docs]
35+
run: uv pip install -e .[docs]
3436

3537
- name: Configure Git for GitHub Pages
3638
run: |

.github/workflows/links.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
link-checker:
1515
name: Lychee link checker
1616
runs-on: ubuntu-latest
17+
env:
18+
UV_SYSTEM_PYTHON: "1"
1719

1820
steps:
1921
- name: Checkout
@@ -26,7 +28,7 @@ jobs:
2628
enable-cache: true
2729

2830
- name: Install dependencies
29-
run: uv pip install --system -e .[docs]
31+
run: uv pip install -e .[docs]
3032

3133
- name: Build documentation with Sphinx
3234
run: |

.github/workflows/mdformat.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
mdformat:
1515
name: Markdown formatting
1616
runs-on: ubuntu-latest
17+
env:
18+
UV_SYSTEM_PYTHON: "1"
1719

1820
steps:
1921
- name: Checkout
@@ -26,7 +28,7 @@ jobs:
2628
enable-cache: true
2729

2830
- name: Install dependencies
29-
run: uv pip install --system "mdformat>=0.7.0" "mdformat-myst>=0.1.5"
31+
run: uv pip install "mdformat>=0.7.0" "mdformat-myst>=0.1.5"
3032

3133
- name: Run mdformat (check only)
3234
run: |

.github/workflows/notebook_tests.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323
test-notebooks:
2424
name: Test Jupyter Notebooks
2525
runs-on: ubuntu-latest
26+
env:
27+
UV_SYSTEM_PYTHON: "1"
2628
strategy:
2729
matrix:
2830
python-version: ["3.10", "3.13"]
@@ -39,7 +41,7 @@ jobs:
3941
enable-cache: true
4042

4143
- name: Install dependencies
42-
run: uv pip install --system -e .[examples]
44+
run: uv pip install -e .[examples]
4345

4446
- name: Test notebook structure and imports
4547
run: |

.github/workflows/ruff.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
ruff:
1414
name: Check for style errors and common problems
1515
runs-on: ubuntu-latest
16+
env:
17+
UV_SYSTEM_PYTHON: "1"
1618
steps:
1719
- name: Checkout
1820
uses: actions/checkout@v6
@@ -24,7 +26,7 @@ jobs:
2426
enable-cache: true
2527

2628
- name: Install Ruff
27-
run: uv pip install --system "ruff>=0.8.0"
29+
run: uv pip install "ruff>=0.8.0"
2830

2931
- name: Run Ruff linter
3032
run: |

0 commit comments

Comments
 (0)