mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-12-31 09:25:40 +00:00
* WIP - MINOR - Clean ingestion dependencies * test * test * Clean imports * add pyiceberg for test * Revert "add pyiceberg for test" This reverts commit ab26942736586f089a57a644ffd727aca200db62. * add pyiceberg for test * Remove docker dep * clean local docker sh * MINOR - AKS Airflow troubleshooting docs * Fix action * clean local docker sh
59 lines
2.0 KiB
YAML
59 lines
2.0 KiB
YAML
name: Setup OpenMetadata Test Environment
|
|
description: Steps needed to have a coherent test environment
|
|
|
|
inputs:
|
|
python-version:
|
|
description: Python Version to install
|
|
required: true
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
# ---- Install Ubuntu Dependencies ---------------------------------------------
|
|
- name: Install Ubuntu dependencies
|
|
run: |
|
|
sudo apt-get update && sudo apt-get install -y unixodbc-dev python3-venv librdkafka-dev gcc libsasl2-dev build-essential libssl-dev libffi-dev \
|
|
unixodbc-dev libevent-dev python3-dev libkrb5-dev
|
|
shell: bash
|
|
# ------------------------------------------------------------------------------
|
|
|
|
# ---- Setup Java --------------------------------------------------------------
|
|
- name: Setup JDK 17
|
|
uses: actions/setup-java@v3
|
|
with:
|
|
java-version: '17'
|
|
distribution: 'temurin'
|
|
# ------------------------------------------------------------------------------
|
|
|
|
# ---- Setup Python Test Environment -------------------------------------------
|
|
- name: Setup Python ${{ inputs.python-version }}
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: ${{ inputs.python-version }}
|
|
|
|
- name: Generate Models
|
|
run: |
|
|
python3 -m venv env
|
|
source env/bin/activate
|
|
sudo make install_antlr_cli
|
|
make install_dev generate
|
|
shell: bash
|
|
|
|
- name: Install Python Dependencies
|
|
run: |
|
|
source env/bin/activate
|
|
make install_all install_test
|
|
shell: bash
|
|
# ------------------------------------------------------------------------------
|
|
|
|
# ---- Start OpenMetadata Server and ingest Sample Data ------------------------
|
|
- name: Start Server and Ingest Sample Data
|
|
uses: nick-fields/retry@v2.8.3
|
|
env:
|
|
INGESTION_DEPENDENCY: "mysql,elasticsearch,sample-data"
|
|
with:
|
|
timeout_minutes: 60
|
|
max_attempts: 2
|
|
retry_on: error
|
|
command: ./docker/run_local_docker.sh -m no-ui
|