Merge pull request #36 from alexpron/datalad-deactivate #11
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
name: Python installation | |
on: [push] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
python-version: ["3.8", "3.9", "3.10"] | |
#TODO: use github action to read python version from pyproject.toml | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
auto-update-conda: true | |
activate-environment: working-env | |
python-version: ${{ matrix.python-version }} | |
auto-activate-base: false | |
- name: Install dependencies | |
shell: bash -el {0} | |
run: | | |
conda install -c conda-forge -c https://conda.anaconda.org/simpleitk SimpleITK brotli bids-validator certifi charset-normalizer dicom-anonymizer idna importlib-metadata 'numpy<2.0' pandas py7zr pybcj pycryptodomex pyppmd pytz pydicom python-dotenv python-dateutil requests six texttable tqdm typing_extensions urllib3 zipp pydicom dicom2nifti Pillow heudiconv git-annex=*=alldep* datalad | |
# Create virtual env under each python version | |
# (optional and a bit redundant because we are already on a specific python) | |
# it insures installation instruction provided in README are working | |
# - name: Test with pytest | |
# run: pytest tests.py --doctest-modules --junitxml=junit/test-results-${{ matrix.python-version }}.xml | |
# - name: Upload pytest test results | |
# uses: actions/upload-artifact@v4 | |
# with: | |
# name: pytest-results-${{ matrix.python-version }} | |
# path: junit/test-results-${{ matrix.python-version }}.xml | |
# # Use always() to always run this step to publish test results when there are test failures | |
# if: ${{ always() }} |