From 19e10c3a4ea751726a9ac18e3af00b57a3d6a270 Mon Sep 17 00:00:00 2001 From: Ariel Rokem Date: Thu, 20 Aug 2026 14:55:04 -0400 Subject: [PATCH 1/2] TST: Add a separate workflow for testing with optional deps. --- .github/workflows/test-optional-deps.yaml | 42 +++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/test-optional-deps.yaml diff --git a/.github/workflows/test-optional-deps.yaml b/.github/workflows/test-optional-deps.yaml new file mode 100644 index 0000000..4a356f8 --- /dev/null +++ b/.github/workflows/test-optional-deps.yaml @@ -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 + From dc69fb41e85f08ccafa8f164c80edf21da6e8bbe Mon Sep 17 00:00:00 2001 From: Ariel Rokem Date: Thu, 20 Aug 2026 15:02:26 -0400 Subject: [PATCH 2/2] Remove duplicated instructions in original workflow. --- .github/workflows/test.yml | 27 +-------------------------- 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 63c1e96..cd1533a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 \ No newline at end of file