Skip to content

Commit d0bc33f

Browse files
jdebackerclaude
andcommitted
Fix uv install in CI: replace --system with uv sync + uv run
The --system flag conflicts with active virtual environments on GitHub Actions runners. Switch to uv sync (which manages its own .venv) and prefix commands with uv run so they execute in that environment. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 19a1042 commit d0bc33f

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/build_and_test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ jobs:
3636
with:
3737
python-version: ${{ matrix.python-version }}
3838
- name: Install package and dependencies
39-
run: uv pip install -e ".[dev]" --system
39+
run: uv sync --extra dev
4040
- name: Test
41-
run: python -m pytest -m "not local and not benchmark" --cov=./ --cov-report=xml
41+
run: uv run python -m pytest -m "not local and not benchmark" --cov=./ --cov-report=xml
4242
- name: Upload coverage to Codecov
4343
if: matrix.os == 'ubuntu-latest' && contains(github.repository, 'PSLmodels/OG-Core')
4444
uses: codecov/codecov-action@v4

.github/workflows/deploy_docs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ jobs:
2727
python-version: "3.13"
2828

2929
- name: Install package and dependencies
30-
run: uv pip install -e ".[dev,docs]" --system
30+
run: uv sync --extra dev --extra docs
3131

3232
- name: Build # Build Jupyter Book
3333
run: |
34-
python -m ipykernel install --user --name=ogcore-dev
35-
make build-docs
34+
uv run python -m ipykernel install --user --name=ogcore-dev
35+
uv run make build-docs
3636
3737
- name: Deploy
3838
uses: JamesIves/github-pages-deploy-action@v4

.github/workflows/docs_check.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ jobs:
2525
python-version: "3.13"
2626

2727
- name: Install package and dependencies
28-
run: uv pip install -e ".[dev,docs]" --system
28+
run: uv sync --extra dev --extra docs
2929

3030
- name: Build # Build Jupyter Book
3131
run: |
32-
python -m ipykernel install --user --name=ogcore-dev
33-
make build-docs
32+
uv run python -m ipykernel install --user --name=ogcore-dev
33+
uv run make build-docs

0 commit comments

Comments
 (0)