This repository has been archived by the owner on Dec 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
61 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Tests | ||
name: Unit and integration tests | ||
|
||
on: | ||
push: | ||
|
@@ -28,38 +28,44 @@ permissions: | |
contents: read | ||
|
||
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 }} | ||
test: | ||
runs-on: 'ubuntu-latest' | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
fetch-depth: 0 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
|
||
- uses: mamba-org/[email protected] | ||
with: | ||
environment-file: env.yml | ||
init-shell: bash | ||
cache-environment: true | ||
post-cleanup: 'none' | ||
generate-run-shell: true | ||
|
||
- uses: actions/cache/restore@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
allow-prereleases: true | ||
- name: Display Python version | ||
run: python -c "import sys; print(sys.version)" | ||
- name: Install tox | ||
path: /home/runner/test-data/ | ||
key: data-v0 | ||
|
||
- name: Datalad install | ||
shell: micromamba-shell {0} | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install tox tox-gh-actions | ||
if [[ ! -d "${TEST_DATA_HOME}" ]]; then | ||
datalad install -rg --source=https://gin.g-node.org/nipreps-data/tests-eddymotion.git ${TEST_DATA_HOME} | ||
else | ||
cd ${TEST_DATA_HOME} | ||
datalad update --merge -r . | ||
datalad get -r -J4 * | ||
fi | ||
- uses: actions/cache/save@v4 | ||
with: | ||
path: /home/runner/test-data/ | ||
key: data-v0 | ||
|
||
- name: Show tox config | ||
run: tox c | ||
- name: Run tox | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
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: | ||
- datalad | ||
- dipy>=1.3.0 | ||
- h5py | ||
- joblib | ||
- tox | ||
- tox-gh-actions | ||
- coverage | ||
- pytest | ||
- pytest-cov | ||
- pytest-env | ||
- pytest-xdist | ||
variables: | ||
FSLOUTPUTTYPE: NIFTI_GZ | ||
TEST_DATA_HOME: /home/runner/test-data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters