-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (37 loc) · 1008 Bytes
/
docs.yml
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
name: Documentation
on:
push:
branches: [main]
pull_request:
branches: ['*']
defaults:
run:
shell: bash -l {0}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Conda Environment
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
miniforge-version: latest
use-mamba: true
environment-file: ci/requirements-docs.yml
activate-environment: pyscenarios-docs
- name: Show conda options
run: conda config --show
- name: conda info
run: conda info
- name: conda list
run: conda list
- name: Install
run: python -m pip install --no-deps -e .
- name: Build docs
run: sphinx-build -n -j auto -b html -d build/doctrees doc build/html
- uses: actions/upload-artifact@v4
with:
name: pyscenarios-docs
path: build/html