-
Notifications
You must be signed in to change notification settings - Fork 133
/
Copy pathconfig.yml
181 lines (181 loc) · 4.63 KB
/
config.yml
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
version: 2.1
jobs:
check_for_changes:
docker:
- image: circleci/python:3.10
steps:
- checkout
- run:
name: Check for changes in specific paths
command: |
set +e
git diff --name-only origin/main...HEAD | grep '^.ci\|^.circleci\|^graph_adapter_tests\|^hamilton\|^plugin_tests\|^tests\|^requirements\|setup' > /dev/null
if [ $? -eq 0 ]; then
echo "Changes found in target paths."
echo 'true' > /tmp/changes_detected
else
echo "No changes found in target paths."
echo 'false' > /tmp/changes_detected
fi
- persist_to_workspace:
root: /tmp
paths:
- changes_detected
test:
parameters:
python-version:
type: string
task:
type: string
docker:
- image: cimg/python:<< parameters.python-version >>
environment:
TASK: << parameters.task >>
CI: true
steps:
- checkout
- attach_workspace:
at: /tmp
- run:
name: Check if changes were detected
command: |
if grep -q 'false' /tmp/changes_detected; then
echo "No changes detected, skipping job..."
circleci-agent step halt
fi
- run:
name: install dependencies
command: .ci/setup.sh
- run:
name: run tests
command: .ci/test.sh
workflows:
unit-test-workflow:
jobs:
- check_for_changes
- test:
requires:
- check_for_changes
name: build-py38
python-version: '3.8'
task: tests
- test:
requires:
- check_for_changes
name: build-py39
python-version: '3.9'
task: tests
- test:
requires:
- check_for_changes
name: build-py310
python-version: '3.10'
task: tests
- test:
name: build-py311
python-version: '3.11'
task: tests
- test:
name: build-py312
python-version: '3.12'
task: tests
- test:
name: pre-commit
python-version: '3.11'
task: pre-commit
- test:
requires:
- check_for_changes
name: dask-py39
python-version: '3.9'
task: dask
- test:
requires:
- check_for_changes
name: dask-py311
python-version: '3.11'
task: dask
- test:
requires:
- check_for_changes
name: ray-py11
python-version: '3.11'
task: ray
- test:
requires:
- check_for_changes
name: vaex-py310
python-version: '3.10'
task: vaex
- test:
requires:
- check_for_changes
name: spark-py39
python-version: '3.9'
task: pyspark
- test:
requires:
- check_for_changes
name: spark-py310
python-version: '3.10'
task: pyspark
- test:
requires:
- check_for_changes
name: spark-py311
python-version: '3.11'
task: pyspark
- test:
requires:
- check_for_changes
name: spark-py312
python-version: '3.12'
task: pyspark
- test:
requires:
- check_for_changes
name: integrations-py38
python-version: '3.8'
task: integrations
- test:
requires:
- check_for_changes
name: integrations-py39
python-version: '3.9'
task: integrations
- test:
requires:
- check_for_changes
name: integrations-py310
python-version: '3.10'
task: integrations
- test:
requires:
- check_for_changes
name: integrations-py311
python-version: '3.11'
task: integrations
- test:
requires:
- check_for_changes
name: integrations-py312
python-version: '3.12'
task: integrations
- test:
requires:
- check_for_changes
name: narwhals-py39
python-version: '3.9'
task: narwhals
- test:
requires:
- check_for_changes
name: narwhals-py310
python-version: '3.10'
task: narwhals
- test:
requires:
- check_for_changes
name: narwhals-py311
python-version: '3.11'
task: narwhals