Skip to content
Closed
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
42 changes: 42 additions & 0 deletions .github/workflows/test-optional-deps.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Test with optional dependencies

on:
push:
branches: [master]
pull_request:
branches: [master]

permissions:
contents: read

jobs:
test:
name: Python ${{ matrix.python-version }} • ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12", "3.13"]
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0 # needed for setuptools_scm version detection

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: pyproject.toml

- name: Install dependencies (including optional ones)
run: |
python -m pip install --upgrade pip
python -m pip install -e .[dev,test,utils]
python -c "import trx; print(trx.__version__)"
python -c "import dipy; print(dipy.__version__)"

- name: Test
run: spin test

27 changes: 1 addition & 26 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,29 +37,4 @@ jobs:
python -c "import trx; print(trx.__version__)"

- name: Test
run: spin test

test-optional-deps:
name: Optional deps
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.12"
cache: pip
cache-dependency-path: pyproject.toml

- name: Install dependencies (including DIPY)
run: |
python -m pip install --upgrade pip
python -m pip install -e .[dev,test,utils]
python -c "import trx; print(trx.__version__)"
python -c "import dipy; print(dipy.__version__)"

- name: Test with DIPY installed
run: spin test
run: spin test
Loading