Skip to content

Commit d2ffeb0

Browse files
tests(datahub-client): new tests for the AvroSchemaConverter (#12087)
1 parent ecf6c8c commit d2ffeb0

File tree

13 files changed

+1598
-750
lines changed

13 files changed

+1598
-750
lines changed

.github/workflows/check-datahub-jars.yml

+12-5
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ on:
55
branches:
66
- master
77
paths:
8-
- "metadata-integration"
8+
- "metadata-integration/**"
99
pull_request:
1010
branches:
1111
- "**"
1212
paths:
13-
- "metadata-integration"
13+
- "metadata-integration/**"
1414
release:
1515
types: [published]
1616

@@ -28,15 +28,22 @@ jobs:
2828
runs-on: ubuntu-latest
2929
steps:
3030
- uses: acryldata/sane-checkout-action@v3
31+
- uses: actions/setup-python@v5
32+
with:
33+
python-version: "3.10"
34+
- uses: actions/cache@v4
35+
with:
36+
path: |
37+
~/.cache/uv
38+
key: ${{ runner.os }}-uv-${{ hashFiles('**/requirements.txt') }}
39+
- name: Install dependencies
40+
run: ./metadata-ingestion/scripts/install_deps.sh
3141
- name: Set up JDK 17
3242
uses: actions/setup-java@v4
3343
with:
3444
distribution: "zulu"
3545
java-version: 17
3646
- uses: gradle/actions/setup-gradle@v3
37-
- uses: actions/setup-python@v5
38-
with:
39-
python-version: "3.10"
4047
- name: check ${{ matrix.command }} jar
4148
run: |
4249
./gradlew :metadata-integration:java:${{ matrix.command }}:build --info

metadata-integration/java/datahub-client/build.gradle

+5
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ test {
9595
finalizedBy jacocoTestReport
9696
}
9797

98+
// no submodule depends on datahub-schematron:cli
99+
// and tests there are the ones checking python-java compatibility
100+
test.dependsOn tasks.getByPath(":metadata-integration:java:datahub-schematron:cli:test")
101+
test.dependsOn tasks.getByPath(":metadata-integration:java:datahub-schematron:lib:test")
102+
98103
task checkShadowJar(type: Exec) {
99104
commandLine 'sh', '-c', 'scripts/check_jar.sh'
100105
}

0 commit comments

Comments
 (0)