Skip to content

add check for documentation building #7

add check for documentation building

add check for documentation building #7

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