File size: 819 Bytes
e072ef3
 
 
 
 
 
 
 
 
 
 
ae96818
61ab7a6
e072ef3
 
 
2a3f899
e072ef3
 
 
 
 
e2988c9
e072ef3
e2988c9
e072ef3
bd436f3
fc23c11
aed2b32
c323ef3
1c8324e
 
e072ef3
816c213
e072ef3
cc971b5
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
name: docs

on:
  push:
    branches:
      - 'master'
    paths:
      - 'pysr/**'
      - '.github/workflows/docs.yml'
      - 'docs/**'
      - 'setup.py'
      - 'README.md'
  workflow_dispatch:

jobs:
  test:
    runs-on: ubuntu-latest
    defaults:
      run:
        shell: bash
    
    steps:
      - uses: actions/checkout@v3
      - name: "Set up Python"
        uses: actions/setup-python@v4
        with:
          python-version: 3.9
          cache: pip
      - name: "Install packages for docs building"
        run: pip install mkdocs-material mkdocs-autorefs 'mkdocstrings[python]' docstring_parser
      - name: "Install PySR"
        run: pip install -e .
      - name: "Build API docs"
        run: cd docs && ./gen_docs.sh
      - name: "Deploy documentation"
        run: mkdocs gh-deploy --force