Skip to content

pin skyportal to 8a2c844d25d2e8c20ef2dbaf496f98a703bb8a3a #1296

pin skyportal to 8a2c844d25d2e8c20ef2dbaf496f98a703bb8a3a

pin skyportal to 8a2c844d25d2e8c20ef2dbaf496f98a703bb8a3a #1296

name: Build, test, and upload docs
on:
push:
branches:
- main
pull_request:
jobs:
build-test-doc:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/setup-python@v1
with:
python-version: '3.8'
- name: Install system dependencies
run: |
curl -sL https://deb.nodesource.com/setup_19.x | sudo -E bash -
sudo apt install -y libcurl4-gnutls-dev libgnutls28-dev
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
./fritz develop
- name: Lint sources
run: |
./fritz lint
- name: Build docs
run: |
pip install wheel
pip install -r skyportal/requirements.txt
pip install -r skyportal/baselayer/requirements.txt
./fritz doc --yes
- name: Deploy docs
if: github.ref == 'refs/heads/main'
uses: JamesIves/[email protected]
with:
folder: doc/_build/html
repository-name: fritz-marshal/doc
branch: main
single_commit: true
ssh-key: ${{ secrets.CI_DEPLOY_KEY }}