[DOC] split atlases section by probabilistic and deterministic (#4779) #2
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: test minimal version of each dependency | |
# Test that if the minimal version of each dependency is installed | |
# along with the latest version of all the other dependencies | |
# then there is no problem installing | |
# | |
# see https://github.com/nilearn/nilearn/issues/4069 | |
on: | |
push: | |
branches: | |
- main | |
# Uses the cron schedule for github actions | |
# | |
# https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#scheduled-events | |
# | |
# ┌───────────── minute (0 - 59) | |
# │ ┌───────────── hour (0 - 23) | |
# │ │ ┌───────────── day of the month (1 - 31) | |
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC) | |
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT) | |
# │ │ │ │ │ | |
# │ │ │ │ │ | |
# │ │ │ │ │ | |
# * * * * * | |
schedule: | |
# Run first day of the month at midnight UTC | |
- cron: 0 0 1 * * | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
# Force to use color | |
env: | |
FORCE_COLOR: true | |
jobs: | |
test_min_install: | |
if: github.repository == 'nilearn/nilearn' | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python-version: ['3.9'] | |
min_dep: [joblib==1.2.0, nibabel==5.2.0, numpy==1.22.4, pandas==2.2.0, scikit-learn==1.4.0, scipy==1.8.0, matplotlib==3.3.0] | |
name: ${{ matrix.os }} with Python ${{ matrix.python-version }} and ${{ matrix.min_dep }} | |
steps: | |
- name: Checkout nilearn | |
uses: actions/checkout@v4 | |
- name: Setup python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies for building Nilearn | |
run: | | |
python -m pip install --upgrade pip setuptools | |
pip install ${{ matrix.min_dep }} | |
- name: Install nilearn | |
run: pip install .[plotting,plotly,test] | |
- name: Run tests | |
run: pytest --pyargs nilearn --cov=nilearn |