feat(ingest/sql): auto extract and use mode query user metadata (#11307) #851
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: Dagster Plugin | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- ".github/workflows/dagster-plugin.yml" | |
- "metadata-ingestion-modules/dagster-plugin/**" | |
- "metadata-ingestion/**" | |
- "metadata-models/**" | |
pull_request: | |
branches: | |
- master | |
paths: | |
- ".github/**" | |
- "metadata-ingestion-modules/dagster-plugin/**" | |
- "metadata-ingestion/**" | |
- "metadata-models/**" | |
release: | |
types: [published] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
dagster-plugin: | |
runs-on: ubuntu-latest | |
env: | |
SPARK_VERSION: 3.0.3 | |
DATAHUB_TELEMETRY_ENABLED: false | |
strategy: | |
matrix: | |
python-version: ["3.8", "3.10"] | |
include: | |
- python-version: "3.8" | |
extraPythonRequirement: "dagster>=1.3.3" | |
- python-version: "3.10" | |
extraPythonRequirement: "dagster>=1.3.3" | |
fail-fast: false | |
steps: | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: "zulu" | |
java-version: 17 | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: "pip" | |
- name: Install dependencies | |
run: ./metadata-ingestion/scripts/install_deps.sh | |
- name: Install dagster package and test (extras ${{ matrix.extraPythonRequirement }}) | |
run: ./gradlew -Pextra_pip_requirements='${{ matrix.extraPythonRequirement }}' :metadata-ingestion-modules:dagster-plugin:lint :metadata-ingestion-modules:dagster-plugin:testQuick | |
- name: pip freeze show list installed | |
if: always() | |
run: source metadata-ingestion-modules/dagster-plugin/venv/bin/activate && pip freeze | |
- uses: actions/upload-artifact@v3 | |
if: ${{ always() && matrix.python-version == '3.10' && matrix.extraPythonRequirement == 'dagster>=1.3.3' }} | |
with: | |
name: Test Results (dagster Plugin ${{ matrix.python-version}}) | |
path: | | |
**/build/reports/tests/test/** | |
**/build/test-results/test/** | |
**/junit.*.xml | |
- name: Upload coverage to Codecov | |
if: always() | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
directory: . | |
fail_ci_if_error: false | |
flags: dagster-${{ matrix.python-version }}-${{ matrix.extraPythonRequirement }} | |
name: pytest-dagster | |
verbose: true | |
event-file: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Upload | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Event File | |
path: ${{ github.event_path }} |