add check for documentation building #7
Workflow file for this run
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
name: Check Documentation Dependencies | |
on: | |
push: | |
branches: | |
- "main" | |
paths: | |
- "docs/requirements-docs.txt" | |
- ".readthedocs" | |
- ".github/workflows/requirements-docs-test.yml" | |
pull_request: | |
branches: | |
- "main" | |
- "stable" | |
paths: | |
- "docs/requirements-docs.txt" | |
- ".readthedocs" | |
- ".github/workflows/requirements-docs-test.yml" | |
jobs: | |
build: | |
name: Build Documentation | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install yq | |
run: sudo snap install yq | |
- name: Get Python Version | |
id: get-version | |
run: | | |
python_version=$(cat .readthedocs.yaml | yq ".build.tools.python") | |
echo python-version=$python_version >> $GITHUB_OUTPUT | |
- name: Check Python Version | |
run: echo '${{ steps.get-version.python-version }}' | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '${{ steps.get-version.python-version }}' | |
- name: Update pip | |
run: pip install --upgrade pip | |
- name: Install Airflow and Dependencies | |
run: pip install -r docs/requirements-docs.txt |