Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/docs-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: "Pull Request Docs Check"

on:
pull_request:
paths:
- ".github/workflows/docs-build.yml"
- "docs/**"
push:
paths:
- ".github/workflows/docs-build.yml"
- "docs/**"
branches:
- main

env:
DEFAULT_PYTHON: "3.10"

jobs:
docs:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ env.DEFAULT_PYTHON }}

- name: Install dependencies and build docs
run: |
set -eux
# Setup version
version=$(git describe --tags --abbrev=0) || exit 1
echo "__version__ = '$version'" | tee trakt/__version__.py
python -c "from trakt import __version__; print(__version__)"

# Install deps and build docs
pip install -r requirements.txt
sudo apt install sphinx
make docs

# vim:ts=2:sw=2:et
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@ name: Test

on:
pull_request:
paths-ignore:
- ".github/workflows/docs-build.yml"
- "docs/**"
push:
paths-ignore:
- ".github/workflows/docs-build.yml"
- "docs/**"
branches:
- main

Expand Down