Skip to content

Remove grid_search_models/ after running tests #41

Remove grid_search_models/ after running tests

Remove grid_search_models/ after running tests #41

Workflow file for this run

name: Build docs
on:
push:
branches:
- main
pull_request:
branches:
- main
- public
- dev
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Cache dependencies
id: pip-cache
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip
- name: Checkout code
uses: actions/checkout@v3
- name: Checkout cebra figures
uses: actions/checkout@v3
with:
repository: AdaptiveMotorControlLab/cebra-figures
path: docs/source/cebra-figures
ref: main
token: ${{ secrets.GH_PAT_FIGURES }}
- name: Checkout assets
uses: actions/checkout@v3
with:
repository: AdaptiveMotorControlLab/cebra-assets
path: assets
ref: main
token: ${{ secrets.GH_PAT_FIGURES }}
- name: Add assets to repo
run: |
cp -r assets/* .
rm -r assets
- name: Checkout cebra demos
uses: actions/checkout@v3
with:
repository: AdaptiveMotorControlLab/cebra-demos
path: docs/source/demo_notebooks
ref: main
token: ${{ secrets.GH_PAT_FIGURES }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install package
run: |
python -m pip install --upgrade pip setuptools wheel
sudo apt-get install -y pandoc
pip install torch --extra-index-url https://download.pytorch.org/whl/cpu
pip install '.[docs]'
- name: Build docs
run: |
ls docs/source/cebra-figures
# later also add the -n option to check for broken links
export SPHINXOPTS="-W --keep-going -n"
make docs
- name: Deploy docs (staging)
uses: cpina/github-action-push-to-another-repository@main
if: github.ref != 'refs/heads/main'
env:
API_TOKEN_GITHUB: ${{ secrets.GH_PAT_WEBSITE }}
with:
source-directory: 'docs/page'
destination-github-username: 'stes'
destination-repository-name: 'cebra-ai'
user-name: stes
user-email: [email protected]
target-branch: staging
- name: Deploy docs (production)
uses: cpina/github-action-push-to-another-repository@main
if: github.ref == 'refs/heads/main'
env:
API_TOKEN_GITHUB: ${{ secrets.GH_PAT_WEBSITE }}
with:
source-directory: 'docs/page'
destination-github-username: 'stes'
destination-repository-name: 'cebra-ai'
user-name: stes
user-email: [email protected]
target-branch: main