-
Notifications
You must be signed in to change notification settings - Fork 2
82 lines (68 loc) · 2.08 KB
/
Copy pathdocs.yml
File metadata and controls
82 lines (68 loc) · 2.08 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: Development docs CI
on:
push:
branches:
- "**"
paths-ignore:
- tests/**
jobs:
docs-test:
if: github.ref != 'refs/heads/main'
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v4
- uses: mamba-org/setup-micromamba@v2
with:
environment-name: caveat
create-args: >-
python=3.11
-c conda-forge -c pytorch -c nvidia -c city-modelling-lab
--file=requirements/base.txt
--file=requirements/dev.txt
cache-environment: true
post-cleanup: none
- name: Install PyPI dependencies
run: pip install -r requirements/pip.txt
- name: Install package
run: pip install --no-deps -e .
- name: Install kernel
run: python -m ipykernel install --user --name caveat
- name: Test docs build
run: mkdocs build --strict
docs-update-latest:
if: github.ref == 'refs/heads/main'
permissions:
contents: write
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: mamba-org/setup-micromamba@v2
with:
environment-name: caveat
create-args: >-
python=3.11
-c conda-forge -c pytorch -c nvidia -c city-modelling-lab
--file=requirements/base.txt
--file=requirements/dev.txt
cache-environment: true
post-cleanup: none
- name: Install PyPI dependencies
run: pip install -r requirements/pip.txt
- name: Install package
run: pip install --no-deps -e .
- name: Install kernel
run: python -m ipykernel install --user --name caveat
- name: Configure git
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Deploy latest docs
run: mike deploy --push --update-aliases develop latest