Repository navigation
94 lines (90 loc) · 2.7 KB
/
Copy pathpython-integration-test.yml
File metadata and controls
94 lines (90 loc) · 2.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
name: Python Client Integration Test
# Controls when the workflow will run
on:
workflow_call:
inputs:
base-ref:
type: string
required: false
default: ''
base-sha:
type: string
required: false
default: ''
head-repository:
type: string
required: false
default: ''
head-sha:
type: string
required: false
default: ''
sync:
type: string
required: false
default: ''
concurrency:
group: fork-ci-python-${{ inputs.head-sha || github.ref }}
cancel-in-progress: true
jobs:
changes:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: ./.github/actions/checkout-and-sync
with:
base-ref: ${{ inputs.base-ref }}
base-sha: ${{ inputs.base-sha }}
head-repository: ${{ inputs.head-repository }}
head-sha: ${{ inputs.head-sha }}
sync: ${{ inputs.sync }}
id: checkout
- name: Disable Git automatic maintenance
run: git config --local maintenance.auto false
- uses: dorny/paths-filter@ceb8a2b8f2d89434be7ff52d3de7ec3738c5cc9d
id: filter
with:
base: ${{ steps.checkout.outputs.synced == 'true' && steps.checkout.outputs.base-sha || steps.checkout.outputs.base-ref }}
ref: ${{ steps.checkout.outputs.synced == 'true' && steps.checkout.outputs.head-sha || github.ref }}
filters: |
source_changes:
- .github/**
- api/**
- authorizations/**
- bin/**
- catalogs/**
- clients/client-python/**
- common/**
- conf/**
- core/**
- dev/**
- gradle/**
- iceberg/**
- meta/**
- scripts/**
- server/**
- server-common/**
- build.gradle.kts
- gradle.properties
- gradlew
- settings.gradle.kts
outputs:
source_changes: ${{ steps.filter.outputs.source_changes }}
PythonIT:
needs: changes
if: needs.changes.outputs.source_changes == 'true'
strategy:
matrix:
architecture: [linux/amd64]
java-version: [ 17 ]
uses: ./.github/workflows/python-integration-test-action.yml
with:
base-ref: ${{ inputs.base-ref }}
base-sha: ${{ inputs.base-sha }}
head-repository: ${{ inputs.head-repository }}
head-sha: ${{ inputs.head-sha }}
sync: ${{ inputs.sync }}
architecture: ${{ matrix.architecture }}
java-version: ${{ matrix.java-version }}