From ffd80671178dbcbc3371c5d98c08c79a94dce1e2 Mon Sep 17 00:00:00 2001 From: Oscar Esteban Date: Wed, 23 Oct 2024 12:35:15 +0200 Subject: [PATCH] maint: do not run unit tests in all platforms --- .github/workflows/test.yml | 24 ++++-------------------- env.yml | 37 ------------------------------------- tox.ini | 3 ++- 3 files changed, 6 insertions(+), 58 deletions(-) delete mode 100644 env.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7fcde7e4..213ed5bf 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -32,21 +32,8 @@ permissions: jobs: stable: - # Check each OS, all supported Python, minimum versions and latest releases - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: ['ubuntu-latest'] - python-version: ['3.10', '3.11', '3.12'] - dependencies: ['full', 'pre'] - include: - - os: ubuntu-latest - python-version: '3.10' - dependencies: 'min' - - env: - DEPENDS: ${{ matrix.dependencies }} - + # Unit tests only on Linux/Python 3.12 + runs-on: 'ubuntu-latest' steps: - uses: actions/checkout@v4 with: @@ -55,13 +42,10 @@ jobs: - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5 with: - python-version: ${{ matrix.python-version }} - allow-prereleases: true - - name: Display Python version - run: python -c "import sys; print(sys.version)" + python-version: '3.12' - name: Install ANTs run: | - conda install conda-forge::ants + conda install -c conda-forge ants=2.5 - name: Install datalad run: | python -m pip install datalad-installer diff --git a/env.yml b/env.yml deleted file mode 100644 index f69ae606..00000000 --- a/env.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: eddymotion -channels: - - conda-forge -# Update this ~yearly; last updated Jan 2024 -dependencies: - - python=3.12 - # Intel Math Kernel Library for numpy - - mkl=2023.2.0 - - mkl-service=2.4.0 - # git-annex for templateflow users with DataLad superdatasets - - git-annex=*=alldep* - # Workflow dependencies: ANTs - - ants=2.5 - - pip - - pip: - - build - - coverage - - datalad - - dipy >= 1.3.0 - - hatch - - hatchling - - h5py - - joblib - - nest-asyncio >= 1.5.1 - - nipype >= 1.5.1, < 2.0 - - nireports - - nitransforms >= 21, < 24 - - numpy >= 1.17.3 - - pytest - - pytest-cov - - pytest-env - - pytest-xdist - - scikit_learn >= 0.18 - - scikit-image >= 0.14.2 - - scipy >= 1.8.0 -variables: - FSLOUTPUTTYPE: NIFTI_GZ diff --git a/tox.ini b/tox.ini index bcdf4587..76398f37 100644 --- a/tox.ini +++ b/tox.ini @@ -25,6 +25,7 @@ pass_env = NO_COLOR CLICOLOR CLICOLOR_FORCE + CURBRANCH GITHUB_ACTIONS TEST_DATA_HOME TEST_OUTPUT_DIR @@ -43,7 +44,7 @@ labels = docs allowlist_externals = make extras = doc commands = - make -C doc html + make -C docs/ SPHINXOPTS="-W -v" BUILDDIR="$HOME/docs" OUTDIR="${CURBRANCH:-html}" html [testenv:spellcheck] description = Check spelling