Skip to content

Commit

Permalink
read python version from .readthedocs.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonLuttenberger committed Aug 16, 2024
1 parent c03538d commit b89bf75
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/requirements-docs-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,25 @@ on:
- ".github/workflows/requirements-docs-test.yml"

jobs:
install:
name: Install Requirements
build:
name: Build Documentation
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install yq
run: sudo apt install yq -y
- name: Get Python Version
id: get-py-version
run: |
python_version=$(cat .readthedocs.yaml | yq ".build.tools.python")`
echo "version=$(python_version)\n" >> $GITHUB_OUTPUT
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: get-py-version.version
- name: Update pip
run: pip install --upgrade pip
- name: Install Airflow and Dependencies
Expand Down

0 comments on commit b89bf75

Please sign in to comment.