Skip to content

pin skyportal to f35f6bfbc691ef08000be8e72390a82c9c496312 #1460

pin skyportal to f35f6bfbc691ef08000be8e72390a82c9c496312

pin skyportal to f35f6bfbc691ef08000be8e72390a82c9c496312 #1460

name: Build, test, and upload docs
on:
push:
branches:
- main
pull_request:
permissions:
contents: write
jobs:
build-test-doc:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- uses: actions/setup-node@v3
with:
node-version: 20
- uses: actions/cache@v2
with:
path: |
~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('package.json') }}
- uses: actions/cache@v2
with:
path: |
~/.cache/pip
key: ${{ runner.os }}-${{ hashFiles('**/requirements*.txt') }}
- name: Install system dependencies
run: |
sudo apt update -y && 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/github-pages-deploy-action@v4.6.1
with:
folder: doc/_build/html
repository-name: fritz-marshal/doc
branch: main
ssh-key: ${{ secrets.CI_DEPLOY_KEY }}