Repository navigation
131 lines (127 loc) · 5.54 KB
/
Copy pathdagster-plugin.yml
File metadata and controls
131 lines (127 loc) · 5.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
name: Dagster Plugin
on:
push:
branches:
- master
- releases/**
paths:
- ".github/workflows/dagster-plugin.yml"
- "metadata-ingestion-modules/dagster-plugin/**"
- "metadata-ingestion/setup.py"
- "metadata-ingestion/pyproject.toml"
- "metadata-ingestion/constraints.txt"
- "metadata-ingestion/build.gradle"
- "metadata-ingestion/src/datahub/api/**"
- "metadata-ingestion/src/datahub/configuration/**"
- "metadata-ingestion/src/datahub/emitter/**"
- "metadata-ingestion/src/datahub/ingestion/api/**"
- "metadata-ingestion/src/datahub/ingestion/graph/**"
- "metadata-ingestion/src/datahub/ingestion/source/sql/sqlalchemy_uri_mapper.py"
- "metadata-ingestion/src/datahub/metadata/**"
- "metadata-ingestion/src/datahub/specific/**"
- "metadata-ingestion/src/datahub/sql_parsing/**"
- "metadata-ingestion/src/datahub/testing/**"
- "metadata-ingestion/src/datahub/utilities/**"
- "metadata-models/**"
pull_request:
branches:
- master
paths:
- ".github/workflows/dagster-plugin.yml"
- "metadata-ingestion-modules/dagster-plugin/**"
- "metadata-ingestion/setup.py"
- "metadata-ingestion/pyproject.toml"
- "metadata-ingestion/constraints.txt"
- "metadata-ingestion/build.gradle"
- "metadata-ingestion/src/datahub/api/**"
- "metadata-ingestion/src/datahub/configuration/**"
- "metadata-ingestion/src/datahub/emitter/**"
- "metadata-ingestion/src/datahub/ingestion/api/**"
- "metadata-ingestion/src/datahub/ingestion/graph/**"
- "metadata-ingestion/src/datahub/ingestion/source/sql/sqlalchemy_uri_mapper.py"
- "metadata-ingestion/src/datahub/metadata/**"
- "metadata-ingestion/src/datahub/specific/**"
- "metadata-ingestion/src/datahub/sql_parsing/**"
- "metadata-ingestion/src/datahub/testing/**"
- "metadata-ingestion/src/datahub/utilities/**"
- "metadata-models/**"
release:
types: [published]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true
env:
DEPOT_PROJECT_ID: "${{ vars.DEPOT_PROJECT_ID }}"
jobs:
dagster-plugin:
runs-on: ${{ vars.DEPOT_PROJECT_ID != '' && 'depot-ubuntu-24.04' || 'ubuntu-24.04' }}
env:
DATAHUB_TELEMETRY_ENABLED: false
strategy:
matrix:
python-version: ["3.11"]
include:
- python-version: "3.11"
extraPythonRequirement: "dagster>=1.3.3"
fail-fast: false
steps:
- uses: acryldata/sane-checkout-action@186e92cc5948a9c3e1cc7a96eaff9f776f3fc8e3 # v7
- name: Set up toolchain
uses: ./.github/actions/setup-toolchain
with:
python-version: ${{ matrix.python-version }}
# Restore-only: ci-cache-warmup.yml warm-metadata-ingestion-uv-cache writes this
# key on both cache backends from every default-branch push. The plugin venv
# installs '-e ../../metadata-ingestion[...]', so the shared metadata-ingestion
# entry covers most of the install.
- uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: |
~/.cache/uv
key: ${{ runner.os }}-uv-${{ hashFiles('metadata-ingestion/setup.py', 'metadata-ingestion/pyproject.toml', 'metadata-ingestion/uv.lock', 'metadata-ingestion/constraints.txt') }}
restore-keys: |
${{ runner.os }}-uv-
- name: Configure fast APT mirror
if: ${{ vars.CI_USE_FAST_API_MIRROR == 'true' }}
uses: ./.github/actions/configure-fast-apt-mirror
- 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:testFull
- name: pip freeze show list installed
if: always()
run: source metadata-ingestion-modules/dagster-plugin/venv/bin/activate && uv pip freeze
- name: Report test results
if: (!cancelled())
uses: ./.github/actions/report-test-results
with:
artifact-name: ingestion-dagster-test-results-${{ strategy.job-index }}
test-results-paths: "metadata-ingestion/dagster-plugin/test-results/**"
junit-file-globs: "metadata-ingestion/dagster-plugin/test-results/*.xml"
- name: Upload coverage to Codecov with ingestion flag
if: always()
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./build/coverage-reports/metadata-ingestion-modules/dagster-plugin/
fail_ci_if_error: false
flags: ingestion-dagster-plugin
name: pytest-dagster-${{ strategy.job-index }}
verbose: true
override_branch: ${{ github.head_ref || github.ref_name }}
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
report_type: test_results
override_branch: ${{ github.head_ref || github.ref_name }}
event-file:
runs-on: ubuntu-24.04
steps:
- name: Upload
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
with:
name: Event File
path: ${{ github.event_path }}