From 1e8dff405db68413b9d619ac663ed4f8f4f11d3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Val=C3=A9rian=20Rey?= Date: Thu, 30 Oct 2025 05:01:37 +0100 Subject: [PATCH] ci: Install torchjd in editable mode * This should fix pytest-cov producing no coverage --- .github/workflows/build-deploy-docs.yml | 2 +- .github/workflows/tests.yml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-deploy-docs.yml b/.github/workflows/build-deploy-docs.yml index 00f94558..891e42f5 100644 --- a/.github/workflows/build-deploy-docs.yml +++ b/.github/workflows/build-deploy-docs.yml @@ -27,7 +27,7 @@ jobs: python-version: ${{ env.PYTHON_VERSION }} - name: Install dependencies (default with full options & doc) - run: uv pip install --python-version=${{ env.PYTHON_VERSION }} '.[full]' --group doc + run: uv pip install --python-version=${{ env.PYTHON_VERSION }} -e '.[full]' --group doc - name: Determine deployment folder id: deploy_folder diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 44ea78ed..570f6dcc 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -27,7 +27,7 @@ jobs: with: python-version: ${{ matrix.python-version }} - name: Install default (with full options) and test dependencies - run: uv pip install --python-version=${{ matrix.python-version }} '.[full]' --group test + run: uv pip install --python-version=${{ matrix.python-version }} -e '.[full]' --group test - name: Run unit and doc tests with coverage report run: uv run pytest -W error tests/unit tests/doc --cov=src --cov-report=xml - name: Upload results to Codecov @@ -45,7 +45,7 @@ jobs: with: python-version: ${{ env.PYTHON_VERSION }} - name: Install default (without any option) and test dependencies - run: uv pip install --python-version=${{ env.PYTHON_VERSION }} . --group test + run: uv pip install --python-version=${{ env.PYTHON_VERSION }} -e . --group test - name: Run unit and doc tests with coverage report run: | uv run pytest -W error tests/unit tests/doc \ @@ -71,7 +71,7 @@ jobs: python-version: ${{ env.PYTHON_VERSION }} - name: Install dependencies (default with full options & doc) - run: uv pip install --python-version=${{ env.PYTHON_VERSION }} '.[full]' --group doc + run: uv pip install --python-version=${{ env.PYTHON_VERSION }} -e '.[full]' --group doc - name: Build Documentation working-directory: docs @@ -90,7 +90,7 @@ jobs: python-version: ${{ env.PYTHON_VERSION }} - name: Install dependencies (default with full options & check) - run: uv pip install --python-version=${{ env.PYTHON_VERSION }} '.[full]' --group check + run: uv pip install --python-version=${{ env.PYTHON_VERSION }} -e '.[full]' --group check - name: Run mypy run: uv run mypy src/torchjd