Skip to content

airflow-teradata-documentation #119

airflow-teradata-documentation

airflow-teradata-documentation #119

# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
---
name: airflow-teradata-documentation
on:
push:
branches:
- main
workflow_dispatch:
schedule:
- cron: "0 6 * * *"
permissions:
contents: write
pages: write
id-token: write
jobs:
teradata-tests:
name: "Build Teradata Provider documentation"
runs-on: "ubuntu-22.04"
steps:
- name: Cleanup repo
run: docker run -v "${GITHUB_WORKSPACE}:/workspace" -u 0:0 bash -c "rm -rf /workspace/*"
- name: "Checkout Teradata Airflow Source Code"
uses: actions/checkout@v4
with:
ref: ${{ vars.BRANCH }}
persist-credentials: false
- name: "Install Python"
uses: actions/setup-python@v4
with:
python-version: '3.8'
cache: 'pip'
cache-dependency-path: ./dev/breeze/setup*
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install docker
run: |
sudo apt-get update
sudo apt-get install ca-certificates curl gnupg lsb-release
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin
sudo chmod 666 /var/run/docker.sock
- name: Install Breeze
run: pip install --editable ./dev/breeze/
- name: Build Teradata provider documentation
run: |
breeze --answer y ci-image build --upgrade-to-newer-dependencies
breeze --answer y build-docs --package-filter apache-airflow-providers-teradata