apache-airflow-providers-lamindb 0.0.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. apache_airflow_providers_lamindb-0.0.1/.github/workflows/qa.yml +360 -0
  2. apache_airflow_providers_lamindb-0.0.1/.gitignore +255 -0
  3. apache_airflow_providers_lamindb-0.0.1/LICENSE +21 -0
  4. apache_airflow_providers_lamindb-0.0.1/PKG-INFO +262 -0
  5. apache_airflow_providers_lamindb-0.0.1/README.md +227 -0
  6. apache_airflow_providers_lamindb-0.0.1/dev/dags/lamindb_showcase.py +102 -0
  7. apache_airflow_providers_lamindb-0.0.1/dev/dags/lamindb_showcase_events.py +41 -0
  8. apache_airflow_providers_lamindb-0.0.1/docs/api.md +67 -0
  9. apache_airflow_providers_lamindb-0.0.1/docs/changelog.md +27 -0
  10. apache_airflow_providers_lamindb-0.0.1/docs/connections/lamindb.md +124 -0
  11. apache_airflow_providers_lamindb-0.0.1/docs/filters.md +109 -0
  12. apache_airflow_providers_lamindb-0.0.1/docs/index.md +50 -0
  13. apache_airflow_providers_lamindb-0.0.1/docs/lineage.md +162 -0
  14. apache_airflow_providers_lamindb-0.0.1/docs/sensors.md +63 -0
  15. apache_airflow_providers_lamindb-0.0.1/docs/stylesheets/airflow.css +527 -0
  16. apache_airflow_providers_lamindb-0.0.1/docs/triggers.md +226 -0
  17. apache_airflow_providers_lamindb-0.0.1/provider.yaml +82 -0
  18. apache_airflow_providers_lamindb-0.0.1/pyproject.toml +141 -0
  19. apache_airflow_providers_lamindb-0.0.1/src/airflow/__init__.py +1 -0
  20. apache_airflow_providers_lamindb-0.0.1/src/airflow/providers/__init__.py +1 -0
  21. apache_airflow_providers_lamindb-0.0.1/src/airflow/providers/lamindb/__init__.py +41 -0
  22. apache_airflow_providers_lamindb-0.0.1/src/airflow/providers/lamindb/decorators/__init__.py +0 -0
  23. apache_airflow_providers_lamindb-0.0.1/src/airflow/providers/lamindb/decorators/kubernetes.py +82 -0
  24. apache_airflow_providers_lamindb-0.0.1/src/airflow/providers/lamindb/decorators/python_virtualenv.py +111 -0
  25. apache_airflow_providers_lamindb-0.0.1/src/airflow/providers/lamindb/exceptions.py +31 -0
  26. apache_airflow_providers_lamindb-0.0.1/src/airflow/providers/lamindb/get_provider_info.py +92 -0
  27. apache_airflow_providers_lamindb-0.0.1/src/airflow/providers/lamindb/hooks/__init__.py +0 -0
  28. apache_airflow_providers_lamindb-0.0.1/src/airflow/providers/lamindb/hooks/lamindb.py +781 -0
  29. apache_airflow_providers_lamindb-0.0.1/src/airflow/providers/lamindb/operators/__init__.py +11 -0
  30. apache_airflow_providers_lamindb-0.0.1/src/airflow/providers/lamindb/operators/flow.py +231 -0
  31. apache_airflow_providers_lamindb-0.0.1/src/airflow/providers/lamindb/py.typed +0 -0
  32. apache_airflow_providers_lamindb-0.0.1/src/airflow/providers/lamindb/sensors/__init__.py +0 -0
  33. apache_airflow_providers_lamindb-0.0.1/src/airflow/providers/lamindb/sensors/branches.py +120 -0
  34. apache_airflow_providers_lamindb-0.0.1/src/airflow/providers/lamindb/sensors/records.py +190 -0
  35. apache_airflow_providers_lamindb-0.0.1/src/airflow/providers/lamindb/triggers/__init__.py +0 -0
  36. apache_airflow_providers_lamindb-0.0.1/src/airflow/providers/lamindb/triggers/base.py +244 -0
  37. apache_airflow_providers_lamindb-0.0.1/src/airflow/providers/lamindb/triggers/branches.py +319 -0
  38. apache_airflow_providers_lamindb-0.0.1/src/airflow/providers/lamindb/triggers/cursors.py +313 -0
  39. apache_airflow_providers_lamindb-0.0.1/src/airflow/providers/lamindb/triggers/records.py +566 -0
  40. apache_airflow_providers_lamindb-0.0.1/src/airflow/providers/lamindb/utils/__init__.py +1 -0
  41. apache_airflow_providers_lamindb-0.0.1/src/airflow/providers/lamindb/utils/dag_run.py +64 -0
  42. apache_airflow_providers_lamindb-0.0.1/src/airflow/providers/lamindb/utils/dbwrite.py +138 -0
  43. apache_airflow_providers_lamindb-0.0.1/src/airflow/providers/lamindb/utils/enums.py +716 -0
  44. apache_airflow_providers_lamindb-0.0.1/src/airflow/providers/lamindb/utils/filters.py +729 -0
  45. apache_airflow_providers_lamindb-0.0.1/src/airflow/providers/lamindb/utils/lamindb.py +130 -0
  46. apache_airflow_providers_lamindb-0.0.1/src/airflow/providers/lamindb/utils/remote.py +349 -0
  47. apache_airflow_providers_lamindb-0.0.1/src/airflow/providers/lamindb/utils/runtime.py +186 -0
  48. apache_airflow_providers_lamindb-0.0.1/tests/conftest.py +73 -0
  49. apache_airflow_providers_lamindb-0.0.1/tests/integration/__init__.py +0 -0
  50. apache_airflow_providers_lamindb-0.0.1/tests/integration/lamindb/__init__.py +0 -0
  51. apache_airflow_providers_lamindb-0.0.1/tests/integration/lamindb/test_lamindb_integration.py +226 -0
  52. apache_airflow_providers_lamindb-0.0.1/tests/system/__init__.py +0 -0
  53. apache_airflow_providers_lamindb-0.0.1/tests/system/lamindb/.airflowignore +1 -0
  54. apache_airflow_providers_lamindb-0.0.1/tests/system/lamindb/__init__.py +0 -0
  55. apache_airflow_providers_lamindb-0.0.1/tests/system/lamindb/example_lamindb_event_scheduling.py +126 -0
  56. apache_airflow_providers_lamindb-0.0.1/tests/system/lamindb/example_lamindb_lineage.py +76 -0
  57. apache_airflow_providers_lamindb-0.0.1/tests/system/lamindb/example_lamindb_sensors.py +72 -0
  58. apache_airflow_providers_lamindb-0.0.1/tests/system/lamindb/test_example_lamindb_lineage.py +104 -0
  59. apache_airflow_providers_lamindb-0.0.1/tests/unit/__init__.py +0 -0
  60. apache_airflow_providers_lamindb-0.0.1/tests/unit/lamindb/__init__.py +0 -0
  61. apache_airflow_providers_lamindb-0.0.1/tests/unit/lamindb/conftest.py +33 -0
  62. apache_airflow_providers_lamindb-0.0.1/tests/unit/lamindb/decorators/__init__.py +0 -0
  63. apache_airflow_providers_lamindb-0.0.1/tests/unit/lamindb/decorators/test_decorators.py +249 -0
  64. apache_airflow_providers_lamindb-0.0.1/tests/unit/lamindb/fakes.py +238 -0
  65. apache_airflow_providers_lamindb-0.0.1/tests/unit/lamindb/hooks/__init__.py +0 -0
  66. apache_airflow_providers_lamindb-0.0.1/tests/unit/lamindb/hooks/test_lamindb.py +518 -0
  67. apache_airflow_providers_lamindb-0.0.1/tests/unit/lamindb/operators/__init__.py +0 -0
  68. apache_airflow_providers_lamindb-0.0.1/tests/unit/lamindb/operators/test_auto_flow.py +140 -0
  69. apache_airflow_providers_lamindb-0.0.1/tests/unit/lamindb/operators/test_flow.py +221 -0
  70. apache_airflow_providers_lamindb-0.0.1/tests/unit/lamindb/sensors/__init__.py +0 -0
  71. apache_airflow_providers_lamindb-0.0.1/tests/unit/lamindb/sensors/test_sensors.py +254 -0
  72. apache_airflow_providers_lamindb-0.0.1/tests/unit/lamindb/test_example_dags.py +60 -0
  73. apache_airflow_providers_lamindb-0.0.1/tests/unit/lamindb/test_get_provider_info.py +53 -0
  74. apache_airflow_providers_lamindb-0.0.1/tests/unit/lamindb/test_optional_lamindb.py +70 -0
  75. apache_airflow_providers_lamindb-0.0.1/tests/unit/lamindb/test_project.py +60 -0
  76. apache_airflow_providers_lamindb-0.0.1/tests/unit/lamindb/triggers/__init__.py +0 -0
  77. apache_airflow_providers_lamindb-0.0.1/tests/unit/lamindb/triggers/test_base.py +399 -0
  78. apache_airflow_providers_lamindb-0.0.1/tests/unit/lamindb/triggers/test_branches.py +240 -0
  79. apache_airflow_providers_lamindb-0.0.1/tests/unit/lamindb/triggers/test_cursors.py +271 -0
  80. apache_airflow_providers_lamindb-0.0.1/tests/unit/lamindb/triggers/test_records.py +483 -0
  81. apache_airflow_providers_lamindb-0.0.1/tests/unit/lamindb/utils/__init__.py +0 -0
  82. apache_airflow_providers_lamindb-0.0.1/tests/unit/lamindb/utils/test_dbwrite.py +169 -0
  83. apache_airflow_providers_lamindb-0.0.1/tests/unit/lamindb/utils/test_enums.py +95 -0
  84. apache_airflow_providers_lamindb-0.0.1/tests/unit/lamindb/utils/test_filters.py +391 -0
  85. apache_airflow_providers_lamindb-0.0.1/tests/unit/lamindb/utils/test_remote.py +235 -0
  86. apache_airflow_providers_lamindb-0.0.1/tests/unit/lamindb/utils/test_runtime.py +188 -0
@@ -0,0 +1,360 @@
1
+ name: QA Check
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ # No paths filter: "QA result" is a required check, so the workflow must run on every PR.
7
+ # The changes job skips what a PR doesn't touch instead.
8
+ pull_request:
9
+ workflow_dispatch:
10
+ workflow_call:
11
+
12
+ permissions:
13
+ contents: read
14
+
15
+ concurrency:
16
+ group: ${{ github.workflow }}-${{ github.ref }}
17
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
18
+
19
+ env:
20
+ PYTHON_VERSION_DEFAULT: "3.14"
21
+
22
+ jobs:
23
+ changes:
24
+ name: Detect changes
25
+ runs-on: ubuntu-latest
26
+ outputs:
27
+ lint: ${{ steps.filter.outputs.lint }}
28
+ typecheck: ${{ steps.filter.outputs.typecheck }}
29
+ unit: ${{ steps.filter.outputs.unit }}
30
+ smoke: ${{ steps.filter.outputs.smoke }}
31
+ integration: ${{ steps.filter.outputs.integration }}
32
+ system: ${{ steps.filter.outputs.system }}
33
+ package: ${{ steps.filter.outputs.package }}
34
+ steps:
35
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 — https://github.com/actions/checkout/releases/tag/v7.0.1
36
+ if: github.event_name == 'pull_request'
37
+ with:
38
+ # the PR's merge commit and its first parent, the base branch
39
+ fetch-depth: 2
40
+
41
+ - name: Match changed files
42
+ id: filter
43
+ env:
44
+ EVENT: ${{ github.event_name }}
45
+ run: |
46
+ if [ "$EVENT" = pull_request ]; then
47
+ files=$(git diff --name-only HEAD^1 HEAD)
48
+ printf 'Changed files:\n%s\n' "$files"
49
+ match() { printf '%s\n' "$files" | grep -qE "$1" && echo true || echo false; }
50
+ else
51
+ match() { echo true; }
52
+ fi
53
+ src='^(src/|pyproject\.toml$|uv\.lock$|provider\.yaml$|\.github/workflows/qa\.yml$)'
54
+ {
55
+ echo "lint=$(match "$src|^(tests|dev)/.*\.py$")"
56
+ echo "typecheck=$(match "$src")"
57
+ echo "unit=$(match "$src|^tests/|^docs/changelog\.md$|^README\.md$")"
58
+ echo "smoke=$(match "$src|^dev/smoke\.py$")"
59
+ echo "integration=$(match "$src|^tests/(integration/|conftest\.py$)")"
60
+ echo "system=$(match "$src|^tests/(system/|conftest\.py$)")"
61
+ echo "package=$(match "$src|^(tests/|docs/|README\.md$|LICENSE$)")"
62
+ } | tee -a "$GITHUB_OUTPUT"
63
+
64
+ lint:
65
+ name: Lint & Format Check
66
+ needs: [changes]
67
+ if: needs.changes.outputs.lint == 'true'
68
+ runs-on: ubuntu-latest
69
+ steps:
70
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 — https://github.com/actions/checkout/releases/tag/v7.0.1
71
+
72
+ - name: Set up Python
73
+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 — https://github.com/actions/setup-python/releases/tag/v7.0.0
74
+ with:
75
+ python-version: ${{ env.PYTHON_VERSION_DEFAULT }}
76
+
77
+ - name: Install uv
78
+ uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0 — https://github.com/astral-sh/setup-uv/releases/tag/v10.3.0
79
+
80
+ - name: Install dependencies
81
+ run: uv sync --locked --group dev
82
+
83
+ - name: Run ruff linter
84
+ run: uv run ruff check src tests dev --output-format=github
85
+
86
+ - name: Run ruff format check
87
+ run: uv run ruff format src tests dev --check
88
+
89
+ typecheck:
90
+ name: Type Check (mypy)
91
+ needs: [changes]
92
+ if: needs.changes.outputs.typecheck == 'true'
93
+ runs-on: ubuntu-latest
94
+ env:
95
+ # mypy checks against the oldest supported Python; dependencies resolved for newer
96
+ # Pythons (e.g. numpy) ship stubs with syntax that mypy rejects for 3.10.
97
+ PYTHON_VERSION_MIN: "3.10"
98
+ steps:
99
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 — https://github.com/actions/checkout/releases/tag/v7.0.1
100
+
101
+ - name: Set up Python
102
+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 — https://github.com/actions/setup-python/releases/tag/v7.0.0
103
+ with:
104
+ python-version: ${{ env.PYTHON_VERSION_MIN }}
105
+
106
+ - name: Install uv
107
+ uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0 — https://github.com/astral-sh/setup-uv/releases/tag/v10.3.0
108
+
109
+ - name: Install dependencies
110
+ run: uv sync --locked --group dev --python ${{ env.PYTHON_VERSION_MIN }}
111
+
112
+ - name: Run mypy
113
+ run: uv run --no-sync mypy
114
+
115
+ test:
116
+ name: Test Python ${{ matrix.python-version }} on ${{ matrix.os }}
117
+ needs: [changes]
118
+ if: needs.changes.outputs.unit == 'true'
119
+ runs-on: ${{ matrix.os }}
120
+ strategy:
121
+ fail-fast: false
122
+ matrix:
123
+ os: [ubuntu-latest]
124
+ # requires-python is >=3.10, so the oldest supported version is exercised too.
125
+ python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
126
+ include:
127
+ # Airflow does not support Windows, so macOS is the only extra platform.
128
+ - os: macos-latest
129
+ python-version: "3.14"
130
+
131
+ steps:
132
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 — https://github.com/actions/checkout/releases/tag/v7.0.1
133
+
134
+ - name: Set up Python ${{ matrix.python-version }}
135
+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 — https://github.com/actions/setup-python/releases/tag/v7.0.0
136
+ with:
137
+ python-version: ${{ matrix.python-version }}
138
+ allow-prereleases: true
139
+
140
+ - name: Install uv
141
+ uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0 — https://github.com/astral-sh/setup-uv/releases/tag/v10.3.0
142
+
143
+ - name: Install dependencies
144
+ run: uv sync --locked --group dev --python ${{ matrix.python-version }}
145
+
146
+ - name: Run unit tests with coverage
147
+ run: uv run pytest tests/unit -v --cov=src/airflow/providers/lamindb --cov-report=xml --cov-report=term-missing
148
+
149
+ - name: Upload coverage to Codecov
150
+ if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.14'
151
+ uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1 — https://github.com/codecov/codecov-action/releases/tag/v7.1.1
152
+ with:
153
+ files: coverage.xml
154
+ fail_ci_if_error: false
155
+ verbose: true
156
+
157
+ compat:
158
+ name: Airflow ${{ matrix.airflow-version }} (official constraints)
159
+ needs: [changes]
160
+ if: needs.changes.outputs.unit == 'true'
161
+ runs-on: ubuntu-latest
162
+ strategy:
163
+ fail-fast: false
164
+ matrix:
165
+ # the floor in pyproject.toml and the newest release; test_project.py checks the floor
166
+ airflow-version: ["3.3.0", "3.3.2"]
167
+ steps:
168
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 — https://github.com/actions/checkout/releases/tag/v7.0.1
169
+
170
+ - name: Set up Python
171
+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 — https://github.com/actions/setup-python/releases/tag/v7.0.0
172
+ with:
173
+ python-version: "3.12"
174
+
175
+ - name: Install uv
176
+ uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0 — https://github.com/astral-sh/setup-uv/releases/tag/v10.3.0
177
+
178
+ - name: Install Airflow with its constraints
179
+ env:
180
+ AIRFLOW_VERSION: ${{ matrix.airflow-version }}
181
+ run: |
182
+ uv venv --python 3.12
183
+ uv pip install "apache-airflow==${AIRFLOW_VERSION}" apache-airflow-providers-standard \
184
+ apache-airflow-providers-cncf-kubernetes apache-airflow-providers-common-compat \
185
+ pytest pytest-asyncio respx pyyaml jsonschema \
186
+ -c "https://raw.githubusercontent.com/apache/airflow/constraints-${AIRFLOW_VERSION}/constraints-3.12.txt"
187
+ uv pip install --no-deps -e .
188
+
189
+ - name: Check the requirements in pyproject.toml accept the constrained versions
190
+ run: uv pip check
191
+
192
+ - name: Run unit tests
193
+ run: .venv/bin/python -m pytest tests/unit -v
194
+
195
+ lowest-direct:
196
+ name: Lowest direct dependencies (Python 3.10)
197
+ needs: [changes]
198
+ if: needs.changes.outputs.unit == 'true'
199
+ runs-on: ubuntu-latest
200
+ steps:
201
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 — https://github.com/actions/checkout/releases/tag/v7.0.1
202
+
203
+ - name: Set up Python
204
+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 — https://github.com/actions/setup-python/releases/tag/v7.0.0
205
+ with:
206
+ python-version: "3.10"
207
+
208
+ - name: Install uv
209
+ uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0 — https://github.com/astral-sh/setup-uv/releases/tag/v10.3.0
210
+
211
+ - name: Install the lowest allowed versions
212
+ run: uv sync --resolution lowest-direct --group dev --python 3.10
213
+
214
+ - name: Show the installed versions
215
+ run: uv pip list
216
+
217
+ - name: Run unit tests
218
+ run: uv run --no-sync pytest tests/unit -v
219
+
220
+ smoke-test:
221
+ name: Smoke Test (base install)
222
+ needs: [changes]
223
+ if: needs.changes.outputs.smoke == 'true'
224
+ runs-on: ubuntu-latest
225
+ # lamindb only runs in virtualenvs and pods, and the kubernetes provider is an
226
+ # optional extra; importing the provider must not require either of them.
227
+ steps:
228
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 — https://github.com/actions/checkout/releases/tag/v7.0.1
229
+
230
+ - name: Set up Python
231
+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 — https://github.com/actions/setup-python/releases/tag/v7.0.0
232
+ with:
233
+ python-version: ${{ env.PYTHON_VERSION_DEFAULT }}
234
+
235
+ - name: Install uv
236
+ uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0 — https://github.com/astral-sh/setup-uv/releases/tag/v10.3.0
237
+
238
+ - name: Install the base package only
239
+ run: uv sync --locked --no-default-groups
240
+
241
+ - name: Smoke import
242
+ run: uv run --no-sync python dev/smoke.py
243
+
244
+ integration-test:
245
+ name: Integration Test
246
+ needs: [changes]
247
+ if: needs.changes.outputs.integration == 'true'
248
+ runs-on: ubuntu-latest
249
+ steps:
250
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 — https://github.com/actions/checkout/releases/tag/v7.0.1
251
+
252
+ - name: Set up Python
253
+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 — https://github.com/actions/setup-python/releases/tag/v7.0.0
254
+ with:
255
+ python-version: ${{ env.PYTHON_VERSION_DEFAULT }}
256
+
257
+ - name: Install uv
258
+ uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0 — https://github.com/astral-sh/setup-uv/releases/tag/v10.3.0
259
+
260
+ - name: Install dependencies
261
+ run: uv sync --locked --group dev
262
+
263
+ # HOME is redirected so the lamindb instance and ~/.lamin settings are throwaway.
264
+ - name: Init throwaway lamindb instance
265
+ env:
266
+ HOME: ${{ runner.temp }}/lamin-home
267
+ run: |
268
+ mkdir -p "$HOME"
269
+ uv run --no-sync lamin init --storage "$HOME/store" --name airflowtest
270
+
271
+ - name: Run integration tests
272
+ env:
273
+ HOME: ${{ runner.temp }}/lamin-home
274
+ LAMINDB_INTEGRATION_TEST: "1"
275
+ run: uv run --no-sync pytest tests/integration -v
276
+
277
+ system-test:
278
+ name: System Test (Airflow dag.test)
279
+ needs: [changes]
280
+ if: needs.changes.outputs.system == 'true'
281
+ runs-on: ubuntu-latest
282
+ steps:
283
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 — https://github.com/actions/checkout/releases/tag/v7.0.1
284
+
285
+ - name: Set up Python
286
+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 — https://github.com/actions/setup-python/releases/tag/v7.0.0
287
+ with:
288
+ python-version: ${{ env.PYTHON_VERSION_DEFAULT }}
289
+
290
+ - name: Install uv
291
+ uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0 — https://github.com/astral-sh/setup-uv/releases/tag/v10.3.0
292
+
293
+ - name: Install dependencies
294
+ run: uv sync --locked --group dev
295
+
296
+ - name: Init throwaway lamindb instance and Airflow DB
297
+ env:
298
+ HOME: ${{ runner.temp }}/lamin-home
299
+ AIRFLOW_HOME: ${{ runner.temp }}/airflow
300
+ AIRFLOW__CORE__LOAD_EXAMPLES: "False"
301
+ AIRFLOW__CORE__DAGS_FOLDER: ${{ github.workspace }}/tests/system/lamindb
302
+ run: |
303
+ mkdir -p "$HOME"
304
+ uv run --no-sync lamin init --storage "$HOME/store" --name airflowtest
305
+ uv run --no-sync airflow db migrate
306
+
307
+ - name: Run system tests
308
+ env:
309
+ HOME: ${{ runner.temp }}/lamin-home
310
+ AIRFLOW_HOME: ${{ runner.temp }}/airflow
311
+ AIRFLOW__CORE__LOAD_EXAMPLES: "False"
312
+ AIRFLOW__CORE__DAGS_FOLDER: ${{ github.workspace }}/tests/system/lamindb
313
+ LAMINDB_E2E_TEST: "1"
314
+ run: uv run --no-sync pytest tests/system -v
315
+
316
+ package:
317
+ name: Build & Check Package
318
+ needs: [changes]
319
+ if: needs.changes.outputs.package == 'true'
320
+ runs-on: ubuntu-latest
321
+ steps:
322
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 — https://github.com/actions/checkout/releases/tag/v7.0.1
323
+
324
+ - name: Set up Python
325
+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 — https://github.com/actions/setup-python/releases/tag/v7.0.0
326
+ with:
327
+ python-version: ${{ env.PYTHON_VERSION_DEFAULT }}
328
+
329
+ - name: Install uv
330
+ uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0 — https://github.com/astral-sh/setup-uv/releases/tag/v10.3.0
331
+
332
+ - name: Build package
333
+ run: uv build
334
+
335
+ - name: Check package
336
+ # twine < 7 rejects newer Metadata-Version values that PyPI accepts.
337
+ run: |
338
+ pip install 'twine>=7.0.0'
339
+ twine check dist/*
340
+
341
+ - name: Check the wheel registers the provider
342
+ run: |
343
+ uv venv /tmp/wheel-check
344
+ uv pip install --python /tmp/wheel-check dist/*.whl
345
+ AIRFLOW_HOME=/tmp/airflow-home /tmp/wheel-check/bin/airflow providers get apache-airflow-providers-lamindb
346
+
347
+ # The required check: skipped jobs pass, failed or cancelled ones fail it.
348
+ result:
349
+ name: QA result
350
+ needs:
351
+ [changes, lint, typecheck, test, compat, lowest-direct, smoke-test, integration-test, system-test, package]
352
+ if: always()
353
+ runs-on: ubuntu-latest
354
+ steps:
355
+ - name: Check the job results
356
+ env:
357
+ RESULTS: ${{ toJSON(needs.*.result) }}
358
+ run: |
359
+ echo "$RESULTS"
360
+ if echo "$RESULTS" | grep -qE '"(failure|cancelled)"'; then exit 1; fi
@@ -0,0 +1,255 @@
1
+ ### JetBrains template
2
+ # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
3
+ # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
4
+
5
+ # User-specific stuff
6
+ .idea/**/workspace.xml
7
+ .idea/**/tasks.xml
8
+ .idea/**/usage.statistics.xml
9
+ .idea/**/dictionaries
10
+ .idea/**/shelf
11
+
12
+ # AWS User-specific
13
+ .idea/**/aws.xml
14
+
15
+ # Generated files
16
+ .idea/**/contentModel.xml
17
+
18
+ # Sensitive or high-churn files
19
+ .idea/**/dataSources/
20
+ .idea/**/dataSources.ids
21
+ .idea/**/dataSources.local.xml
22
+ .idea/**/sqlDataSources.xml
23
+ .idea/**/dynamic.xml
24
+ .idea/**/uiDesigner.xml
25
+ .idea/**/dbnavigator.xml
26
+
27
+ # Gradle
28
+ .idea/**/gradle.xml
29
+ .idea/**/libraries
30
+
31
+ # Gradle and Maven with auto-import
32
+ # When using Gradle or Maven with auto-import, you should exclude module files,
33
+ # since they will be recreated, and may cause churn. Uncomment if using
34
+ # auto-import.
35
+ # .idea/artifacts
36
+ # .idea/compiler.xml
37
+ # .idea/jarRepositories.xml
38
+ # .idea/modules.xml
39
+ # .idea/*.iml
40
+ # .idea/modules
41
+ # *.iml
42
+ # *.ipr
43
+
44
+ # CMake
45
+ cmake-build-*/
46
+
47
+ # Mongo Explorer plugin
48
+ .idea/**/mongoSettings.xml
49
+
50
+ # File-based project format
51
+ *.iws
52
+
53
+ # IntelliJ
54
+ out/
55
+
56
+ # mpeltonen/sbt-idea plugin
57
+ .idea_modules/
58
+
59
+ # JIRA plugin
60
+ atlassian-ide-plugin.xml
61
+
62
+ # Cursive Clojure plugin
63
+ .idea/replstate.xml
64
+
65
+ # SonarLint plugin
66
+ .idea/sonarlint/
67
+
68
+ # Crashlytics plugin (for Android Studio and IntelliJ)
69
+ com_crashlytics_export_strings.xml
70
+ crashlytics.properties
71
+ crashlytics-build.properties
72
+ fabric.properties
73
+
74
+ # Editor-based Rest Client
75
+ .idea/httpRequests
76
+
77
+ # Android studio 3.1+ serialized cache file
78
+ .idea/caches/build_file_checksums.ser
79
+
80
+ ### Python template
81
+ # Byte-compiled / optimized / DLL files
82
+ __pycache__/
83
+ *.py[cod]
84
+ *$py.class
85
+
86
+ # C extensions
87
+ *.so
88
+
89
+ # Distribution / packaging
90
+ .Python
91
+ build/
92
+ develop-eggs/
93
+ dist/
94
+ downloads/
95
+ eggs/
96
+ .eggs/
97
+ lib/
98
+ lib64/
99
+ parts/
100
+ sdist/
101
+ var/
102
+ wheels/
103
+ share/python-wheels/
104
+ *.egg-info/
105
+ .installed.cfg
106
+ *.egg
107
+ MANIFEST
108
+
109
+ # PyInstaller
110
+ # Usually these files are written by a python script from a template
111
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
112
+ *.manifest
113
+ *.spec
114
+
115
+ # Installer logs
116
+ pip-log.txt
117
+ pip-delete-this-directory.txt
118
+
119
+ # Unit test / coverage reports
120
+ htmlcov/
121
+ .tox/
122
+ .nox/
123
+ .coverage
124
+ .coverage.*
125
+ .cache
126
+ nosetests.xml
127
+ coverage.xml
128
+ *.cover
129
+ *.py,cover
130
+ .hypothesis/
131
+ .pytest_cache/
132
+ cover/
133
+
134
+ # Translations
135
+ *.mo
136
+ *.pot
137
+
138
+ # Django stuff:
139
+ *.log
140
+ local_settings.py
141
+ db.sqlite3
142
+ db.sqlite3-journal
143
+
144
+ # Flask stuff:
145
+ instance/
146
+ .webassets-cache
147
+
148
+ # Scrapy stuff:
149
+ .scrapy
150
+
151
+ # Sphinx documentation
152
+ docs/_build/
153
+
154
+ # PyBuilder
155
+ .pybuilder/
156
+ target/
157
+
158
+ # Jupyter Notebook
159
+ .ipynb_checkpoints
160
+
161
+ # IPython
162
+ profile_default/
163
+ ipython_config.py
164
+
165
+ # pyenv
166
+ # For a library or package, you might want to ignore these files since the code is
167
+ # intended to run in multiple environments; otherwise, check them in:
168
+ # .python-version
169
+
170
+ # pipenv
171
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
172
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
173
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
174
+ # install all needed dependencies.
175
+ #Pipfile.lock
176
+
177
+ # poetry
178
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
179
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
180
+ # commonly ignored for libraries.
181
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
182
+ #poetry.lock
183
+
184
+ # pdm
185
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
186
+ #pdm.lock
187
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
188
+ # in version control.
189
+ # https://pdm.fming.dev/latest/usage/project/#working-with-version-control
190
+ .pdm.toml
191
+ .pdm-python
192
+ .pdm-build/
193
+
194
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
195
+ __pypackages__/
196
+
197
+ # Celery stuff
198
+ celerybeat-schedule
199
+ celerybeat.pid
200
+
201
+ # SageMath parsed files
202
+ *.sage.py
203
+
204
+ # Environments
205
+ .env
206
+ .venv
207
+ env/
208
+ venv/
209
+ ENV/
210
+ env.bak/
211
+ venv.bak/
212
+
213
+ # Spyder project settings
214
+ .spyderproject
215
+ .spyproject
216
+
217
+ # Rope project settings
218
+ .ropeproject
219
+
220
+ # mkdocs documentation
221
+ /site
222
+
223
+ # mypy
224
+ .mypy_cache/
225
+ .dmypy.json
226
+ dmypy.json
227
+
228
+ # Pyre type checker
229
+ .pyre/
230
+
231
+ # pytype static type analyzer
232
+ .pytype/
233
+
234
+ # Cython debug symbols
235
+ cython_debug/
236
+
237
+ # PyCharm
238
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
239
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
240
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
241
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
242
+ .idea/
243
+
244
+ # project-local lamindb instance pointer
245
+ .lamin/
246
+
247
+ # Ruff
248
+ .ruff_cache/
249
+
250
+ # IntelliJ module files and macOS metadata
251
+ *.iml
252
+ .DS_Store
253
+
254
+ # Airflow home of `just standalone`
255
+ .airflow/
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Dan Plischke, Andreas Poehlmann
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.