forked from lsst/rubin_sim
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (55 loc) · 1.79 KB
/
python-docs-only.yml
File metadata and controls
57 lines (55 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Build and Push Documentation
on:
# Trigger the workflow manually (otherwise runs automatically after unit tests)
workflow_dispatch:
jobs:
Docs:
name: Build and push documentation
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: 3.8
channels: conda-forge,defaults
channel-priority: strict
show-channel-urls: true
- name: configure and install conda and requirements
shell: bash -l {0}
run: |
conda config --set always_yes yes
conda install --quiet --file=requirements.txt
conda install lsst-documenteer-pipelines
- name: install rubin_sim
shell: bash -l {0}
run: |
echo `pwd`
ls ${{ github.workspace }}
python -m pip install .
- name: download rubin_sim_data components needed to set up metrics for metricList
shell: bash -l {0}
run: |
export RUBIN_SIM_DATA_DIR=${{ github.workspace }}
rs_download_data -d 'maf,throughputs'
- name: conda list
shell: bash -l {0}
run: conda list
- name: build documentation
shell: bash -l {0}
run: |
export RUBIN_SIM_DATA_DIR=${{ github.workspace }}
cd doc
python metricList.py
make html
- name: Install LTD Conveyor
shell: bash -l {0}
run: |
python -m pip install ltd-conveyor
- name: upload documentation
shell: bash -l {0}
env:
LTD_PASSWORD: ${{ secrets.LTD_PASSWORD }}
LTD_USERNAME: ${{ secrets.LTD_USERNAME }}
run: |
ltd upload --gh --dir doc/_build/html --product rubin-sim