-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (46 loc) · 1.33 KB
/
ci-docs.yml
File metadata and controls
51 lines (46 loc) · 1.33 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
name: Docs Build (MyST-NB + RTD Mirror)
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: "0 2 * * *"
jobs:
build-docs:
name: Build and Test Documentation
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [ "3.13" ]
defaults:
run:
shell: bash -l {0}
env:
CONDA_ENV_FILE: environment.yml
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install micromamba environment
uses: mamba-org/setup-micromamba@v2
with:
environment-name: radolan-guide
environment-file: environment.yml
cache-environment: true
cache-environment-key: "${{runner.os}}-${{runner.arch}}-py${{env.PYTHON_VERSION}}-${{env.TODAY}}-${{hashFiles(env.CONDA_ENV_FILE)}}"
create-args: >-
python=${{matrix.python-version}}
- name: pytest notebooks
working-directory: notebooks
run: |
pytest -v -n auto
- name: Build documentation with Sphinx
run: |
python -m sphinx -j 14 -b html . _build/html -v
- name: Upload HTML build (for PR inspection)
if: ${{ success() }}
uses: actions/upload-artifact@v4
with:
name: docs-html
path: _build/html