File: docs.yml

package info (click to toggle)
mpmath 1.4.0~b3-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 4,548 kB
  • sloc: python: 47,701; makefile: 22
file content (32 lines) | stat: -rw-r--r-- 958 bytes parent folder | download
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
name: Build & test docs
on: [workflow_dispatch, workflow_call]
jobs:
  docs:
    runs-on: ubuntu-24.04
    steps:
      - uses: actions/checkout@v5
        with:
          fetch-depth: 0
      - uses: actions/setup-python@v6
        with:
          python-version: "3.x"
      - name: Install libs
        run: |
          sudo apt update
          sudo apt install latexmk texlive-xetex
      - name: Install dependencies
        run: |
          pip install --upgrade setuptools pip
          pip install --upgrade .[docs]
      - name: Building docs
        run: |
          alias sphinx-build='sphinx-build --color -W --keep-going'
          sphinx-build -b html docs build/sphinx/html
          sphinx-build -b latex docs build/sphinx/latex
          make -C build/sphinx/latex all-pdf
      - uses: actions/upload-artifact@v5
        with:
          name: docs
          path: |
            build/sphinx/html/
            build/sphinx/latex/mpmath.pdf