File: doctest.yml

package info (click to toggle)
websocket-client 1.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 1,076 kB
  • sloc: python: 5,492; makefile: 17; sh: 13
file content (20 lines) | stat: -rw-r--r-- 566 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
name: Run doctest on Sphinx docs

on: [push, pull_request]

jobs:
  run-doctest:
    runs-on: ubuntu-latest
    name: doctest check
    steps:
      - name: Check out source repository
        uses: actions/checkout@v5
      - name: Set up Python ${{ matrix.python-version }} environment
        uses: actions/setup-python@v6
        with:
          python-version: "3.13"

      - name: Run pytest with doctest args
        run: |
          pip3 install pytest 'websocket-client[docs]' rel
          pytest ./docs/source -v --doctest-glob="*.rst" --doctest-modules