diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 44ea78ed..17d0053c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -6,10 +6,6 @@ on: schedule: - cron: '41 16 * * *' # Every day at 16:41 UTC (to avoid high load at exact hour values). -env: - UV_NO_SYNC: 1 - PYTHON_VERSION: 3.14 - jobs: tests-full-install: name: Run tests with full install @@ -29,7 +25,7 @@ jobs: - name: Install default (with full options) and test dependencies run: uv pip install --python-version=${{ matrix.python-version }} '.[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 + run: uv run ls -R src | head && uv run pytest -W error tests/unit tests/doc --cov=src --cov-report=xml - name: Upload results to Codecov uses: codecov/codecov-action@v4 with: @@ -43,9 +39,9 @@ jobs: - name: Set up uv uses: astral-sh/setup-uv@v5 with: - python-version: ${{ env.PYTHON_VERSION }} + python-version: '3.10' - 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=3.10 . --group test - name: Run unit and doc tests with coverage report run: | uv run pytest -W error tests/unit tests/doc \ @@ -68,10 +64,10 @@ jobs: - name: Set up uv uses: astral-sh/setup-uv@v5 with: - python-version: ${{ env.PYTHON_VERSION }} + python-version: '3.14' - 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=3.14 '.[full]' --group doc - name: Build Documentation working-directory: docs @@ -87,10 +83,10 @@ jobs: - name: Set up uv uses: astral-sh/setup-uv@v5 with: - python-version: ${{ env.PYTHON_VERSION }} + python-version: '3.14' - 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=3.14 '.[full]' --group check - name: Run mypy run: uv run mypy src/torchjd