update changes in examples. #108
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
# this file is *not* meant to cover or endorse the use of GitHub Actions, but rather to | |
# help make automated releases for this project | |
name: Release | |
on: | |
push: | |
branches: | |
- main | |
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
# Allow one concurrent deployment | |
concurrency: | |
group: "pages" | |
cancel-in-progress: true | |
jobs: | |
# Single deploy job since we're just deploying | |
deploy: | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Pages | |
uses: actions/configure-pages@v2 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.10" | |
- name: Install pysap | |
run: | | |
python -m pip install --upgrade pip wheel | |
python -m pip install git+https://github.com/CEA-COSMIC/ModOpt.git@develop | |
cd .. | |
git clone -b develop https://github.com/CEA-COSMIC/pysap.git | |
cd pysap | |
python -m pip install pyqt5 | |
python setup.py install --nosparse2d | |
cd ../simfmri | |
- name: Install test dependencies | |
run: | | |
# install cmake if missing (required for pysap) | |
command -v cmake >/dev/null 2>&1 || { apt -y update; apt -y install cmake;} | |
python -m pip install --upgrade pip wheel | |
python -m pip install git+https://github.com/CEA-COSMIC/ModOpt.git@develop | |
python -m pip install git+https://github.com/CEA-COSMIC/pysap.git@develop | |
python -m pip install git+https://github.com/paquiteau/pysap-fmri | |
python -m pip install .[test,doc] matplotlib | |
- name: Build API documentation | |
run: | | |
python -m sphinx docs docs_build | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v1 | |
with: | |
# Upload entire repository | |
path: 'docs_build' | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v1 |