1
- name : test weaviate
1
+
2
+ name : test databricks
2
3
3
4
on :
4
5
pull_request :
8
9
workflow_dispatch :
9
10
10
11
env :
11
- DESTINATION__WEAVIATE__CREDENTIALS__URL : ${{ secrets.DESTINATION__WEAVIATE__CREDENTIALS__URL }}
12
- DESTINATION__WEAVIATE__CREDENTIALS__API_KEY : ${{ secrets.DESTINATION__WEAVIATE__CREDENTIALS__API_KEY }}
13
- DESTINATION__WEAVIATE__CREDENTIALS__ADDITIONAL_HEADERS : ${{ secrets.DESTINATION__WEAVIATE__CREDENTIALS__ADDITIONAL_HEADERS }}
12
+ DLT_SECRETS_TOML : ${{ secrets.DLT_SECRETS_TOML }}
14
13
15
14
RUNTIME__SENTRY_DSN :
https://[email protected] /4504819859914752
16
15
RUNTIME__LOG_LEVEL : ERROR
17
16
18
- ACTIVE_DESTINATIONS : " [\" weaviate \" ]"
17
+ ACTIVE_DESTINATIONS : " [\" databricks \" ]"
19
18
ALL_FILESYSTEM_DRIVERS : " [\" memory\" ]"
20
19
21
20
jobs :
@@ -24,20 +23,21 @@ jobs:
24
23
if : ${{ !github.event.pull_request.head.repo.fork }}
25
24
26
25
run_loader :
27
- name : Tests Weaviate loader
26
+ name : Tests Databricks loader
28
27
needs : get_docs_changes
29
- if : !always()
30
- # if: needs.get_docs_changes.outputs.changes_outside_docs == 'true'
28
+ if : needs.get_docs_changes.outputs.changes_outside_docs == 'true'
31
29
strategy :
32
30
fail-fast : false
33
31
matrix :
34
- os : ["ubuntu-latest", "macos-latest", "windows-latest"]
32
+ os : ["ubuntu-latest"]
33
+ # os: ["ubuntu-latest", "macos-latest", "windows-latest"]
35
34
defaults :
36
35
run :
37
36
shell : bash
38
37
runs-on : ${{ matrix.os }}
39
38
40
39
steps :
40
+
41
41
- name : Check out
42
42
uses : actions/checkout@master
43
43
@@ -61,19 +61,23 @@ jobs:
61
61
key : venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}-gcp
62
62
63
63
- name : Install dependencies
64
- run : poetry install --no-interaction -E weaviate -E parquet --with sentry-sdk --with pipeline
64
+ run : poetry install --no-interaction -E databricks -E s3 -E gs -E az -E parquet --with sentry-sdk --with pipeline
65
+
66
+ - name : create secrets.toml
67
+ run : pwd && echo "$DLT_SECRETS_TOML" > tests/.dlt/secrets.toml
68
+
65
69
- run : |
66
- poetry run pytest tests/load/
70
+ poetry run pytest tests/load
67
71
if: runner.os != 'Windows'
68
72
name: Run tests Linux/MAC
69
73
- run : |
70
- poetry run pytest tests/load/
74
+ poetry run pytest tests/load
71
75
if: runner.os == 'Windows'
72
76
name: Run tests Windows
73
77
shell: cmd
74
78
75
79
matrix_job_required_check :
76
- name : Weaviate loader tests
80
+ name : Databricks loader tests
77
81
needs : run_loader
78
82
runs-on : ubuntu-latest
79
83
if : always()
0 commit comments