File: docs.yaml

package info (click to toggle)
pims 0.7%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 16,336 kB
  • sloc: python: 5,559; makefile: 149
file content (28 lines) | stat: -rw-r--r-- 676 bytes parent folder | download | duplicates (2)
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
name: Docs

on: [push, pull_request]


jobs:
  build:
    runs-on: ubuntu-20.04
    steps:

      - uses: actions/checkout@v3

      - name: Install Python dependencies
        run: pip install ipython numpydoc pytest scikit-image sphinx sphinx-copybutton sphinx-rtd-theme

      - name: Install pims
        run: python -m pip install -v .

      - name: Build
        run: make -Cdoc html

      - name: Publish
        if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
        uses: peaceiris/actions-gh-pages@v3
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          publish_dir: ./docs/build/html
          force_orphan: true