Skip to content

Commit c8936c2

Browse files
committed
ci: use uv torch backend = auto
1 parent 1746e16 commit c8936c2

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

.github/workflows/documentation.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
push:
55
branches: [main]
66

7+
env:
8+
UV_TORCH_BACKEND: "auto" # only used with uv pip install
9+
710
jobs:
811
Documentation:
912
runs-on: ubuntu-latest
@@ -16,7 +19,10 @@ jobs:
1619
with:
1720
cache-suffix: -docs-${{ matrix.python-version }}-${{ env.WEEK }}
1821
- name: Install dependencies
19-
run: uv sync --group docs --group dev
22+
run: |
23+
uv venv
24+
source .venv/bin/activate
25+
uv pip install -e . --group docs --group dev
2026
- name: Set up Git
2127
run: |
2228
git config user.name ${{ github.actor }}

.github/workflows/tests.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
branches: [main]
77

88
env:
9-
UV_TORCH_BACKEND: "auto"
9+
UV_TORCH_BACKEND: "auto" # only used with uv pip install
1010

1111
jobs:
1212
Linting:
@@ -43,7 +43,10 @@ jobs:
4343
with:
4444
cache-suffix: -tests-${{ matrix.python-version }}-${{ env.WEEK }}
4545
- name: Install dependencies
46-
run: uv sync --group dev
46+
run: |
47+
uv venv
48+
source .venv/bin/activate
49+
uv pip install -e . --group dev
4750
4851
- name: Test with Pytest on Python ${{ matrix.python-version }}
4952
run: |
@@ -88,7 +91,10 @@ jobs:
8891
with:
8992
cache-suffix: -docs-${{ matrix.python-version }}-${{ env.WEEK }}
9093
- name: Install dependencies
91-
run: uv sync --group docs --group dev
94+
run: |
95+
uv venv
96+
source .venv/bin/activate
97+
uv pip install -e . --group docs --group dev
9298
- name: Build documentation
9399
run: |
94100
source .venv/bin/activate

contributing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ git clone ssh://git@github.com/aphp/confit.git
1717
cd confit
1818

1919
# Install the library with its dev dependencies
20-
uv sync --group dev --group docs
20+
uv pip install -e . --group dev --group docs
2121

2222
# Activate the virtual environment
2323
source .venv/bin/activate

0 commit comments

Comments
 (0)