File: docs_test_action.yml

package info (click to toggle)
python-pyproject-parser 0.13.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,432 kB
  • sloc: python: 3,086; makefile: 7
file content (37 lines) | stat: -rw-r--r-- 869 bytes parent folder | download | duplicates (3)
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
# This file is managed by 'repo_helper'. Don't edit it directly.
---
name: "Docs Check"
on:
  push:
    branches-ignore:
      - 'repo-helper-update'
      - 'pre-commit-ci-update-config'
      - 'imgbot'
  pull_request:

permissions:
  contents: read

jobs:
  docs:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout 🛎️
        uses: "actions/checkout@v4"

      - name: Check for changed files
        uses: dorny/paths-filter@v2
        id: changes
        with:
          list-files: "json"
          filters: |
            code:
              - '!tests/**'

      - name: Install and Build 🔧
        uses: sphinx-toolbox/sphinx-action@sphinx-3.3.1
        if: steps.changes.outputs.code == 'true'
        with:
          pre-build-command: python -m pip install tox
          docs-folder: "doc-source/"
          build-command: "tox -e docs -- "