Factor out logic into filter_reqs_by_py_version and filter_reqs_with_… #283
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 -- -W " |