Skip to content

Commit 78a60b3

Browse files
authored
Merge branch 'main' into dev-new-engine
2 parents 42a3d7f + 73c1965 commit 78a60b3

3 files changed

Lines changed: 14 additions & 7 deletions

File tree

.github/workflows/build-deploy-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
python-version: ${{ env.PYTHON_VERSION }}
2828

2929
- name: Install dependencies (default with full options & doc)
30-
run: uv pip install --python-version=${{ env.PYTHON_VERSION }} '.[full]' --group doc
30+
run: uv pip install --python-version=${{ env.PYTHON_VERSION }} -e '.[full]' --group doc
3131

3232
- name: Determine deployment folder
3333
id: deploy_folder

.github/workflows/tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
with:
2828
python-version: ${{ matrix.python-version }}
2929
- name: Install default (with full options) and test dependencies
30-
run: uv pip install --python-version=${{ matrix.python-version }} '.[full]' --group test
30+
run: uv pip install --python-version=${{ matrix.python-version }} -e '.[full]' --group test
3131
- name: Run unit and doc tests with coverage report
3232
run: uv run pytest -W error tests/unit tests/doc --cov=src --cov-report=xml
3333
- name: Upload results to Codecov
@@ -45,7 +45,7 @@ jobs:
4545
with:
4646
python-version: ${{ env.PYTHON_VERSION }}
4747
- name: Install default (without any option) and test dependencies
48-
run: uv pip install --python-version=${{ env.PYTHON_VERSION }} . --group test
48+
run: uv pip install --python-version=${{ env.PYTHON_VERSION }} -e . --group test
4949
- name: Run unit and doc tests with coverage report
5050
run: |
5151
uv run pytest -W error tests/unit tests/doc \
@@ -71,7 +71,7 @@ jobs:
7171
python-version: ${{ env.PYTHON_VERSION }}
7272

7373
- name: Install dependencies (default with full options & doc)
74-
run: uv pip install --python-version=${{ env.PYTHON_VERSION }} '.[full]' --group doc
74+
run: uv pip install --python-version=${{ env.PYTHON_VERSION }} -e '.[full]' --group doc
7575

7676
- name: Build Documentation
7777
working-directory: docs
@@ -90,7 +90,7 @@ jobs:
9090
python-version: ${{ env.PYTHON_VERSION }}
9191

9292
- name: Install dependencies (default with full options & check)
93-
run: uv pip install --python-version=${{ env.PYTHON_VERSION }} '.[full]' --group check
93+
run: uv pip install --python-version=${{ env.PYTHON_VERSION }} -e '.[full]' --group check
9494

9595
- name: Run mypy
9696
run: uv run mypy src/torchjd

CONTRIBUTING.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,15 @@ mandatory, we only provide installation steps with this tool. You can install it
1919
2) Create a virtual environment and install the project in it. From the root of `torchjd`, run:
2020
```bash
2121
uv venv
22-
CC=gcc uv pip install --python-version=3.13.3 -e '.[full]' --group check --group doc --group test --group plot
22+
CC=gcc uv pip install --python-version=3.14 -e '.[full]' --group check --group doc --group test --group plot
2323
```
24+
If you want to install PyTorch with a different CUDA version (this could be required depending on
25+
your GPU), you'll need to specify and extra index. For instance, for CUDA 12.6, run:
26+
```bash
27+
uv venv
28+
CC=gcc uv pip install --python-version=3.14 -e '.[full]' --group check --group doc --group test --group plot --index-strategy unsafe-best-match --extra-index-url https://download.pytorch.org/whl/cu126
29+
```
30+
2431
We also advise using `UV_NO_SYNC=1` to prevent `uv` from syncing all the time. This is because by
2532
default, it tries to resolve libraries compatible with the whole range of Python versions
2633
supported by TorchJD, but in reality, we just need an installation compatible with the currently
@@ -60,7 +67,7 @@ from the root of `torchjd`:
6067
rm -rf .venv
6168
rm uv.lock
6269
uv venv
63-
CC=gcc uv pip install --python-version=3.13.3 -e '.[full]' --group check --group doc --group test --group plot
70+
CC=gcc uv pip install --python-version=3.14 -e '.[full]' --group check --group doc --group test --group plot
6471
uv run pre-commit install
6572
```
6673

0 commit comments

Comments
 (0)