pin skyportal to b0af4bcd6d8edfd20e27a29fe471ddd2fe962469 #1284
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
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 }} |