-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 941 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
name: Docs
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
# if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.x
- name: Install dependencies
run: |
pip install kima
# - name: Run examples
# run: |
# make -C docs
- name: Install docs packages
run: |
python -m pip install mkdocs-material mkdocstrings[python]
python -m pip install mkdocs-jupyter
python -m pip install mkdocs-git-revision-date-localized-plugin
- name: Import
run: |
python -c "import kima"
python -c "from kima import pykima"
- name: GH deploy
run: |
mkdocs gh-deploy --force