10
10
- " metadata-models/**"
11
11
pull_request :
12
12
branches :
13
- - master
13
+ - " ** "
14
14
paths :
15
- - " .github/** "
15
+ - " .github/workflows/prefect-plugin.yml "
16
16
- " metadata-ingestion-modules/prefect-plugin/**"
17
17
- " metadata-ingestion/**"
18
18
- " metadata-models/**"
@@ -37,35 +37,42 @@ jobs:
37
37
- python-version : " 3.10"
38
38
fail-fast : false
39
39
steps :
40
+ - name : Set up JDK 17
41
+ uses : actions/setup-java@v3
42
+ with :
43
+ distribution : " zulu"
44
+ java-version : 17
45
+ - uses : gradle/gradle-build-action@v2
40
46
- uses : actions/checkout@v3
41
47
- uses : actions/setup-python@v4
42
48
with :
43
49
python-version : ${{ matrix.python-version }}
44
50
cache : " pip"
45
51
- name : Install dependencies
46
52
run : ./metadata-ingestion/scripts/install_deps.sh
47
- - name : Install prefect package and test (extras ${{ matrix.extraPythonRequirement }})
48
- run : ./gradlew -Pextra_pip_requirements='${{ matrix.extraPythonRequirement }}' :metadata-ingestion-modules:prefect-plugin:lint :metadata-ingestion-modules:airflow -plugin:testQuick
53
+ - name : Install prefect package
54
+ run : ./gradlew :metadata-ingestion-modules:prefect-plugin:lint :metadata-ingestion-modules:prefect -plugin:testQuick
49
55
- name : pip freeze show list installed
50
56
if : always()
51
57
run : source metadata-ingestion-modules/prefect-plugin/venv/bin/activate && pip freeze
52
58
- uses : actions/upload-artifact@v3
53
- if : ${{ always() && matrix.python-version == '3.10' && matrix.extraPythonRequirement == 'prefect>=2.0.0' }}
59
+ if : ${{ always() && matrix.python-version == '3.10'}}
54
60
with :
55
61
name : Test Results (Prefect Plugin ${{ matrix.python-version}})
56
62
path : |
57
63
**/build/reports/tests/test/**
58
64
**/build/test-results/test/**
59
65
**/junit.*.xml
66
+ !**/binary/**
60
67
- name : Upload coverage to Codecov
61
68
if : always()
62
69
uses : codecov/codecov-action@v3
63
70
with :
64
71
token : ${{ secrets.CODECOV_TOKEN }}
65
72
directory : .
66
73
fail_ci_if_error : false
67
- flags : prefect-${{ matrix.python-version }}-${{ matrix.extraPythonRequirement }}
68
- name : pytest-prefect
74
+ flags : prefect,prefect -${{ matrix.extra_pip_extras }}
75
+ name : pytest-prefect-${{ matrix.python-version }}
69
76
verbose : true
70
77
71
78
event-file :
0 commit comments