Merge pull request #46 from mvdoc/doc/paper #37
This file contains hidden or 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: Tutorials | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
run-tutorials: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.9, "3.10", "3.11", "3.12", "3.13"] | |
max-parallel: 5 | |
fail-fast: true | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- uses: actions/cache@v4 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- uses: actions/cache@v4 | |
with: | |
path: ~/voxelwise_tutorials_data/shortclips | |
key: shortclips-dataset | |
- name: Install dependencies | |
run: | | |
pip install -U setuptools | |
pip install -U wheel | |
# install himalaya from source to get early testing | |
pip install git+https://github.com/gallantlab/himalaya.git | |
pip install -e ."[docs,github]" | |
# use neurodebian installer for travis | |
bash <(wget -q -O- http://neuro.debian.net/_files/neurodebian-travis.sh) | |
sudo apt-get update -qq | |
sudo apt-get install git-annex-standalone | |
- name: Config git-annex | |
run: | | |
# add some git config for git-annex | |
git config --global user.email "github-actions@example.com" | |
git config --global user.name "Github Actions" | |
- name: Run some tutorials | |
run: | | |
# run tutorials with a shortcut option to skip model fitting | |
HIMALAYA_SKIP_FIT=True jupyter-book build tutorials |