Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/actions/install-deps/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ inputs:
description: 'Dependency groups to install (space-separated, e.g., "test doc")'
required: false
default: ''
torch_channel:
description: 'PyTorch channel to use. Use "nightly" to upgrade torch and torchvision to the latest nightly build.'
required: false
default: 'stable'

runs:
using: composite
Expand Down Expand Up @@ -45,3 +49,10 @@ runs:
# Print and execute the command
echo $cmd
eval $cmd

- name: Upgrade to torch nightly
if: ${{ inputs.torch_channel == 'nightly' }}
shell: bash
run: |
uv pip install --pre --upgrade torch torchvision --index-url https://download.pytorch.org/whl/nightly/cpu
uv run python -c "import torch, torchvision; print('torch:', torch.__version__, '| torchvision:', torchvision.__version__)"
Comment thread
ValerianRey marked this conversation as resolved.
5 changes: 4 additions & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
tests:
# Default config: py3.14, ubuntu-latest, float32, full options.
# The idea is to make each of those params vary one by one, to limit the number of tests to run.
name: Tests (py${{ matrix.python-version || '3.14' }}, ${{ matrix.os || 'ubuntu-latest' }}, ${{ matrix.dtype || 'float32' }}, ${{ matrix.options || 'full' }}${{ matrix.extra_groups && format(', {0}', matrix.extra_groups) || '' }})
name: Tests (py${{ matrix.python-version || '3.14' }}, ${{ matrix.os || 'ubuntu-latest' }}, ${{ matrix.dtype || 'float32' }}, ${{ matrix.options || 'full' }}${{ matrix.extra_groups && format(', {0}', matrix.extra_groups) || '' }}${{ matrix.torch_channel == 'nightly' && ', torch-nightly' || '' }})
runs-on: ${{ matrix.os || 'ubuntu-latest' }}
strategy:
fail-fast: false
Expand All @@ -39,6 +39,8 @@ jobs:
# Lower-bounds of all dependencies and Python version.
- python-version: '3.10.0'
extra_groups: 'lower_bounds'
# Latest: torch nightly build.
- torch_channel: 'nightly'
Comment thread
ValerianRey marked this conversation as resolved.

steps:
- name: Checkout repository
Expand All @@ -53,6 +55,7 @@ jobs:
with:
options: ${{ matrix.options || 'full' }}
groups: test ${{ matrix.extra_groups }}
torch_channel: ${{ matrix.torch_channel || 'stable' }}

- name: Run unit tests
run: uv run pytest -W error tests/unit --cov=src --cov-report=xml
Expand Down
Loading