Skip to content

Commit 021eede

Browse files
Modify prefect-plugin yml file
1 parent eefb576 commit 021eede

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

.github/workflows/prefect-plugin.yml

+14-7
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ on:
1010
- "metadata-models/**"
1111
pull_request:
1212
branches:
13-
- master
13+
- "**"
1414
paths:
15-
- ".github/**"
15+
- ".github/workflows/prefect-plugin.yml"
1616
- "metadata-ingestion-modules/prefect-plugin/**"
1717
- "metadata-ingestion/**"
1818
- "metadata-models/**"
@@ -37,35 +37,42 @@ jobs:
3737
- python-version: "3.10"
3838
fail-fast: false
3939
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
4046
- uses: actions/checkout@v3
4147
- uses: actions/setup-python@v4
4248
with:
4349
python-version: ${{ matrix.python-version }}
4450
cache: "pip"
4551
- name: Install dependencies
4652
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
4955
- name: pip freeze show list installed
5056
if: always()
5157
run: source metadata-ingestion-modules/prefect-plugin/venv/bin/activate && pip freeze
5258
- 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'}}
5460
with:
5561
name: Test Results (Prefect Plugin ${{ matrix.python-version}})
5662
path: |
5763
**/build/reports/tests/test/**
5864
**/build/test-results/test/**
5965
**/junit.*.xml
66+
!**/binary/**
6067
- name: Upload coverage to Codecov
6168
if: always()
6269
uses: codecov/codecov-action@v3
6370
with:
6471
token: ${{ secrets.CODECOV_TOKEN }}
6572
directory: .
6673
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 }}
6976
verbose: true
7077

7178
event-file:

0 commit comments

Comments
 (0)