config.yml 20.2 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
version: 2.1
orbs:
    gcp-gke: circleci/gcp-gke@1.0.4
    go: circleci/go@1.3.0

# TPU REFERENCES
references:
    checkout_ml_testing: &checkout_ml_testing
        run:
            name: Checkout ml-testing-accelerators
            command: |
                git clone https://github.com/GoogleCloudPlatform/ml-testing-accelerators.git
                cd ml-testing-accelerators
                git fetch origin 5e88ac24f631c27045e62f0e8d5dfcf34e425e25:stable
                git checkout stable
    build_push_docker: &build_push_docker
        run:
            name: Configure Docker
            command: |
                gcloud --quiet auth configure-docker
                cd docker/transformers-pytorch-tpu
22
                if [ -z "$CIRCLE_PR_NUMBER" ]; then docker build --tag "$GCR_IMAGE_PATH:$CIRCLE_WORKFLOW_JOB_ID" -f Dockerfile --build-arg "TEST_IMAGE=1" . ; else docker build --tag "$GCR_IMAGE_PATH:$CIRCLE_WORKFLOW_JOB_ID" -f Dockerfile --build-arg "TEST_IMAGE=1" --build-arg "GITHUB_REF=pull/$CIRCLE_PR_NUMBER/head" . ; fi
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
                docker push "$GCR_IMAGE_PATH:$CIRCLE_WORKFLOW_JOB_ID"
    deploy_cluster: &deploy_cluster
        run:
            name: Deploy the job on the kubernetes cluster
            command: |
                go get github.com/google/go-jsonnet/cmd/jsonnet && \
                export PATH=$PATH:$HOME/go/bin && \
                kubectl create -f docker/transformers-pytorch-tpu/dataset.yaml || true && \
                job_name=$(jsonnet -J ml-testing-accelerators/ docker/transformers-pytorch-tpu/bert-base-cased.jsonnet --ext-str image=$GCR_IMAGE_PATH --ext-str image-tag=$CIRCLE_WORKFLOW_JOB_ID | kubectl create -f -) && \
                job_name=${job_name#job.batch/} && \
                job_name=${job_name% created} && \
                echo "Waiting on kubernetes job: $job_name" && \
                i=0 && \
                # 30 checks spaced 30s apart = 900s total.
                max_checks=30 && \
                status_code=2 && \
                # Check on the job periodically. Set the status code depending on what
                # happened to the job in Kubernetes. If we try max_checks times and
                # still the job hasn't finished, give up and return the starting
                # non-zero status code.
                while [ $i -lt $max_checks ]; do ((i++)); if kubectl get jobs $job_name -o jsonpath='Failed:{.status.failed}' | grep "Failed:1"; then status_code=1 && break; elif kubectl get jobs $job_name -o jsonpath='Succeeded:{.status.succeeded}' | grep "Succeeded:1" ; then status_code=0 && break; else echo "Job not finished yet"; fi; sleep 30; done && \
                echo "Done waiting. Job status code: $status_code" && \
45
46
47
                pod_name=$(kubectl get po -l controller-uid=`kubectl get job $job_name -o "jsonpath={.metadata.labels.controller-uid}"` | awk 'match($0,!/NAME/) {print $1}') && \
                echo "GKE pod name: $pod_name" && \
                kubectl logs -f $pod_name --container=train
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
                echo "Done with log retrieval attempt." && \
                gcloud container images delete "$GCR_IMAGE_PATH:$CIRCLE_WORKFLOW_JOB_ID" --force-delete-tags && \
                exit $status_code
    delete_gke_jobs: &delete_gke_jobs
        run:
            name: Delete GKE Jobs
            command: |
                # Match jobs whose age matches patterns like '1h' or '1d', i.e. any job
                # that has been around longer than 1hr. First print all columns for
                # matches, then execute the delete.
                kubectl get job | awk 'match($4,/[0-9]+[dh]/) {print $0}'
                kubectl delete job $(kubectl get job | awk 'match($4,/[0-9]+[dh]/) {print $1}')




Julien Chaumond's avatar
Julien Chaumond committed
64
jobs:
Aymeric Augustin's avatar
Aymeric Augustin committed
65
    run_tests_torch_and_tf:
66
        working_directory: ~/transformers
67
        docker:
68
            - image: circleci/python:3.6
69
70
        environment:
            OMP_NUM_THREADS: 1
71
72
            RUN_PT_TF_CROSS_TESTS: yes
            TRANSFORMERS_IS_CI: yes
73
74
75
76
        resource_class: xlarge
        parallelism: 1
        steps:
            - checkout
77
78
            - restore_cache:
                  keys:
Lysandre Debut's avatar
Lysandre Debut committed
79
80
                      - v0.4-torch_and_tf-{{ checksum "setup.py" }}
                      - v0.4-{{ checksum "setup.py" }}
Suraj Patil's avatar
Suraj Patil committed
81
            - run: sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev
82
            - run: pip install --upgrade pip
83
84
            - run: pip install .[sklearn,tf-cpu,testing,sentencepiece,speech,vision]
            - run: pip install -U torch==1.8.1 torchvision==0.9.1 torchaudio==0.8.1
85
            - run: pip install torch-scatter -f https://pytorch-geometric.com/whl/torch-1.8.0+cpu.html
86
            - save_cache:
Lysandre Debut's avatar
Lysandre Debut committed
87
                key: v0.4-{{ checksum "setup.py" }}
88
89
                paths:
                    - '~/.cache/pip'
90
            - run: python -m pytest -n 8 --dist=loadfile -rA -s --make-reports=tests_torch_and_tf ./tests/ -m is_pt_tf_cross_test --durations=0 | tee tests_output.txt
91
            - store_artifacts:
92
93
94
95
                  path: ~/transformers/tests_output.txt
            - store_artifacts:
                  path: ~/transformers/reports

96
97
98
99
100
101
    run_tests_torch_and_flax:
        working_directory: ~/transformers
        docker:
            - image: circleci/python:3.6
        environment:
            OMP_NUM_THREADS: 1
102
103
            RUN_PT_FLAX_CROSS_TESTS: yes
            TRANSFORMERS_IS_CI: yes
104
105
106
107
108
109
110
111
112
113
        resource_class: xlarge
        parallelism: 1
        steps:
            - checkout
            - restore_cache:
                  keys:
                      - v0.4-torch_and_flax-{{ checksum "setup.py" }}
                      - v0.4-{{ checksum "setup.py" }}
            - run: sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev
            - run: pip install --upgrade pip
114
            - run: pip install .[sklearn,flax,torch,testing,sentencepiece,speech,vision]
115
            - run: pip install -U torch==1.8.1 torchvision==0.9.1 torchaudio==0.8.1
116
            - run: pip install torch-scatter -f https://pytorch-geometric.com/whl/torch-1.8.0+cpu.html
117
118
119
120
            - save_cache:
                key: v0.4-{{ checksum "setup.py" }}
                paths:
                    - '~/.cache/pip'
121
            - run: python -m pytest -n 8 --dist=loadfile -rA -s --make-reports=tests_torch_and_flax ./tests/ -m is_pt_flax_cross_test --durations=0 | tee tests_output.txt
122
123
124
125
126
            - store_artifacts:
                  path: ~/transformers/tests_output.txt
            - store_artifacts:
                  path: ~/transformers/reports

Aymeric Augustin's avatar
Aymeric Augustin committed
127
    run_tests_torch:
128
        working_directory: ~/transformers
Julien Chaumond's avatar
Julien Chaumond committed
129
        docker:
130
            - image: circleci/python:3.7
131
132
        environment:
            OMP_NUM_THREADS: 1
133
            TRANSFORMERS_IS_CI: yes
134
        resource_class: xlarge
135
        parallelism: 1
Julien Chaumond's avatar
Julien Chaumond committed
136
137
        steps:
            - checkout
138
139
            - restore_cache:
                  keys:
Lysandre Debut's avatar
Lysandre Debut committed
140
141
                      - v0.4-torch-{{ checksum "setup.py" }}
                      - v0.4-{{ checksum "setup.py" }}
Suraj Patil's avatar
Suraj Patil committed
142
            - run: sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev
143
            - run: pip install --upgrade pip
NielsRogge's avatar
NielsRogge committed
144
            - run: pip install .[sklearn,torch,testing,sentencepiece,speech,vision,timm]
145
            - run: pip install -U torch==1.8.1 torchaudio==0.8.1 torchvision==0.9.1
146
            - run: pip install torch-scatter -f https://pytorch-geometric.com/whl/torch-1.8.0+cpu.html
147
            - save_cache:
Lysandre Debut's avatar
Lysandre Debut committed
148
                  key: v0.4-torch-{{ checksum "setup.py" }}
149
150
                  paths:
                      - '~/.cache/pip'
Sylvain Gugger's avatar
Sylvain Gugger committed
151
            - run: python -m pytest -n 3 --dist=loadfile -s --make-reports=tests_torch ./tests/ | tee tests_output.txt
152
            - store_artifacts:
153
154
155
                  path: ~/transformers/tests_output.txt
            - store_artifacts:
                  path: ~/transformers/reports
Lysandre Debut's avatar
Lysandre Debut committed
156

Aymeric Augustin's avatar
Aymeric Augustin committed
157
    run_tests_tf:
158
        working_directory: ~/transformers
thomwolf's avatar
thomwolf committed
159
        docker:
160
            - image: circleci/python:3.7
161
162
        environment:
            OMP_NUM_THREADS: 1
163
            TRANSFORMERS_IS_CI: yes
thomwolf's avatar
thomwolf committed
164
165
166
167
        resource_class: xlarge
        parallelism: 1
        steps:
            - checkout
168
169
            - restore_cache:
                  keys:
Lysandre Debut's avatar
Lysandre Debut committed
170
171
                      - v0.4-tf-{{ checksum "setup.py" }}
                      - v0.4-{{ checksum "setup.py" }}
172
            - run: pip install --upgrade pip
173
            - run: pip install .[sklearn,tf-cpu,testing,sentencepiece]
174
            - save_cache:
Lysandre Debut's avatar
Lysandre Debut committed
175
                  key: v0.4-tf-{{ checksum "setup.py" }}
176
177
                  paths:
                      - '~/.cache/pip'
178
            - run: python -m pytest -n 8 --dist=loadfile -rA -s --make-reports=tests_tf ./tests/ | tee tests_output.txt
179
            - store_artifacts:
180
181
182
183
                  path: ~/transformers/tests_output.txt
            - store_artifacts:
                  path: ~/transformers/reports

184
185
186
187
188
189
    run_tests_flax:
        working_directory: ~/transformers
        docker:
            - image: circleci/python:3.7
        environment:
            OMP_NUM_THREADS: 1
190
            TRANSFORMERS_IS_CI: yes
191
192
193
194
195
196
        resource_class: xlarge
        parallelism: 1
        steps:
            - checkout
            - restore_cache:
                keys:
Lysandre Debut's avatar
Lysandre Debut committed
197
198
                    - v0.4-flax-{{ checksum "setup.py" }}
                    - v0.4-{{ checksum "setup.py" }}
199
            - run: pip install --upgrade pip
200
            - run: sudo pip install .[flax,testing,sentencepiece]
201
            - save_cache:
Lysandre Debut's avatar
Lysandre Debut committed
202
                  key: v0.4-flax-{{ checksum "setup.py" }}
203
204
                  paths:
                      - '~/.cache/pip'
205
            - run: python -m pytest -n 8 --dist=loadfile -rA -s --make-reports=tests_flax ./tests/ | tee tests_output.txt
206
            - store_artifacts:
207
208
209
210
                  path: ~/transformers/tests_output.txt
            - store_artifacts:
                  path: ~/transformers/reports

211
212
213
214
215
216
    run_tests_pipelines_torch:
        working_directory: ~/transformers
        docker:
            - image: circleci/python:3.7
        environment:
            OMP_NUM_THREADS: 1
217
218
            RUN_PIPELINE_TESTS: yes
            TRANSFORMERS_IS_CI: yes
219
220
221
222
223
224
        resource_class: xlarge
        parallelism: 1
        steps:
            - checkout
            - restore_cache:
                  keys:
Lysandre Debut's avatar
Lysandre Debut committed
225
226
                      - v0.4-torch-{{ checksum "setup.py" }}
                      - v0.4-{{ checksum "setup.py" }}
Suraj Patil's avatar
Suraj Patil committed
227
            - run: sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev
228
            - run: pip install --upgrade pip
229
            - run: pip install .[sklearn,torch,testing,sentencepiece,speech,vision]
230
            - run: pip install -U torch==1.8.1 torchvision==0.9.1 torchaudio==0.8.1
231
            - run: pip install torch-scatter -f https://pytorch-geometric.com/whl/torch-1.8.0+cpu.html
232
            - save_cache:
Lysandre Debut's avatar
Lysandre Debut committed
233
                  key: v0.4-torch-{{ checksum "setup.py" }}
234
235
                  paths:
                      - '~/.cache/pip'
236
            - run: python -m pytest -n 8 --dist=loadfile -rA -s --make-reports=tests_pipelines_torch -m is_pipeline_test ./tests/ | tee tests_output.txt
237
            - store_artifacts:
238
239
240
241
                  path: ~/transformers/tests_output.txt
            - store_artifacts:
                  path: ~/transformers/reports

242
243
244
245
246
247
    run_tests_pipelines_tf:
        working_directory: ~/transformers
        docker:
            - image: circleci/python:3.7
        environment:
            OMP_NUM_THREADS: 1
248
249
            RUN_PIPELINE_TESTS: yes
            TRANSFORMERS_IS_CI: yes
250
251
252
253
254
255
        resource_class: xlarge
        parallelism: 1
        steps:
            - checkout
            - restore_cache:
                  keys:
Lysandre Debut's avatar
Lysandre Debut committed
256
257
                      - v0.4-tf-{{ checksum "setup.py" }}
                      - v0.4-{{ checksum "setup.py" }}
258
            - run: pip install --upgrade pip
259
            - run: pip install .[sklearn,tf-cpu,testing,sentencepiece]
260
            - save_cache:
Lysandre Debut's avatar
Lysandre Debut committed
261
                  key: v0.4-tf-{{ checksum "setup.py" }}
262
263
                  paths:
                      - '~/.cache/pip'
264
            - run: python -m pytest -n 8 --dist=loadfile -rA -s --make-reports=tests_pipelines_tf ./tests/ -m is_pipeline_test | tee tests_output.txt
265
266
            - store_artifacts:
                  path: ~/transformers/tests_output.txt
267
            - store_artifacts:
268
269
                  path: ~/transformers/reports

Aymeric Augustin's avatar
Aymeric Augustin committed
270
    run_tests_custom_tokenizers:
271
272
        working_directory: ~/transformers
        docker:
273
            - image: circleci/python:3.7
274
275
        environment:
            RUN_CUSTOM_TOKENIZERS: yes
276
            TRANSFORMERS_IS_CI: yes
277
278
        steps:
            - checkout
279
280
            - restore_cache:
                  keys:
Lysandre Debut's avatar
Lysandre Debut committed
281
282
                      - v0.4-custom_tokenizers-{{ checksum "setup.py" }}
                      - v0.4-{{ checksum "setup.py" }}
283
            - run: pip install --upgrade pip
284
            - run: pip install .[ja,testing,sentencepiece,jieba]
285
            - run: python -m unidic download
286
            - save_cache:
Lysandre Debut's avatar
Lysandre Debut committed
287
                  key: v0.4-custom_tokenizers-{{ checksum "setup.py" }}
288
289
                  paths:
                      - '~/.cache/pip'
290
291
292
            - run: python -m pytest -s --make-reports=tests_custom_tokenizers ./tests/test_tokenization_bert_japanese.py | tee tests_output.txt
            - store_artifacts:
                  path: ~/transformers/tests_output.txt
293
            - store_artifacts:
294
295
                  path: ~/transformers/reports

Aymeric Augustin's avatar
Aymeric Augustin committed
296
    run_examples_torch:
297
298
        working_directory: ~/transformers
        docker:
299
            - image: circleci/python:3.6
300
301
        environment:
            OMP_NUM_THREADS: 1
302
            TRANSFORMERS_IS_CI: yes
303
304
305
306
        resource_class: xlarge
        parallelism: 1
        steps:
            - checkout
307
308
            - restore_cache:
                  keys:
Lysandre Debut's avatar
Lysandre Debut committed
309
310
                      - v0.4-torch_examples-{{ checksum "setup.py" }}
                      - v0.4-{{ checksum "setup.py" }}
311
            - run: pip install --upgrade pip
312
            - run: pip install .[sklearn,torch,sentencepiece,testing]
Sylvain Gugger's avatar
Sylvain Gugger committed
313
            - run: pip install -r examples/pytorch/_tests_requirements.txt
314
            - save_cache:
Lysandre Debut's avatar
Lysandre Debut committed
315
                  key: v0.4-torch_examples-{{ checksum "setup.py" }}
316
317
                  paths:
                      - '~/.cache/pip'
Sylvain Gugger's avatar
Sylvain Gugger committed
318
            - run: TRANSFORMERS_IS_CI=1 python -m pytest -n 8 --dist=loadfile -s --make-reports=examples_torch ./examples/pytorch/ | tee examples_output.txt
319
            - store_artifacts:
320
321
322
                  path: ~/transformers/examples_output.txt
            - store_artifacts:
                  path: ~/transformers/reports
323

Sylvain Gugger's avatar
Sylvain Gugger committed
324
    run_tests_hub:
325
326
327
        working_directory: ~/transformers
        docker:
            - image: circleci/python:3.7
328
        environment:
Sylvain Gugger's avatar
Sylvain Gugger committed
329
            HUGGINGFACE_CO_STAGING: yes
330
331
            RUN_GIT_LFS_TESTS: yes
            TRANSFORMERS_IS_CI: yes
332
333
334
335
        resource_class: xlarge
        parallelism: 1
        steps:
            - checkout
Sylvain Gugger's avatar
Sylvain Gugger committed
336
337
338
339
            - restore_cache:
                  keys:
                      - v0.4-hub-{{ checksum "setup.py" }}
                      - v0.4-{{ checksum "setup.py" }}
340
341
342
343
344
            - run: sudo apt-get install git-lfs
            - run: |
                git config --global user.email "ci@dummy.com"
                git config --global user.name "ci"
            - run: pip install --upgrade pip
Sylvain Gugger's avatar
Sylvain Gugger committed
345
346
347
348
349
350
            - run: pip install .[torch,sentencepiece,testing]
            - save_cache:
                  key: v0.4-hub-{{ checksum "setup.py" }}
                  paths:
                      - '~/.cache/pip'
            - run: python -m pytest -sv ./tests/ -m is_staging_test
351

352
353
354
355
356
357
    build_doc:
        working_directory: ~/transformers
        docker:
            - image: circleci/python:3.6
        steps:
            - checkout
358
359
            - restore_cache:
                  keys:
Lysandre Debut's avatar
Lysandre Debut committed
360
361
                      - v0.4-build_doc-{{ checksum "setup.py" }}
                      - v0.4-{{ checksum "setup.py" }}
Suraj Patil's avatar
Suraj Patil committed
362
            - run: sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev
363
            - run: pip install --upgrade pip
364
            - run: pip install ."[docs]"
365
            - save_cache:
Lysandre Debut's avatar
Lysandre Debut committed
366
                  key: v0.4-build_doc-{{ checksum "setup.py" }}
367
368
                  paths:
                      - '~/.cache/pip'
Stas Bekman's avatar
Stas Bekman committed
369
            - run: cd docs && make html SPHINXOPTS="-W -j 4"
370
371
            - store_artifacts:
                path: ./docs/_build
372

LysandreJik's avatar
LysandreJik committed
373
    deploy_doc:
374
        working_directory: ~/transformers
LysandreJik's avatar
LysandreJik committed
375
        docker:
376
            - image: circleci/python:3.6
LysandreJik's avatar
LysandreJik committed
377
378
        steps:
            - add_ssh_keys:
379
380
                fingerprints:
                    - "5b:7a:95:18:07:8c:aa:76:4c:60:35:88:ad:60:56:71"
LysandreJik's avatar
LysandreJik committed
381
            - checkout
382
383
            - restore_cache:
                  keys:
Lysandre Debut's avatar
Lysandre Debut committed
384
385
                      - v0.4-deploy_doc-{{ checksum "setup.py" }}
                      - v0.4-{{ checksum "setup.py" }}
Sylvain Gugger's avatar
Sylvain Gugger committed
386
387
            - run: sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev
            - run: pip install --upgrade pip
388
            - run: pip install ."[docs]"
389
            - save_cache:
Lysandre Debut's avatar
Lysandre Debut committed
390
                  key: v0.4-deploy_doc-{{ checksum "setup.py" }}
391
392
                  paths:
                      - '~/.cache/pip'
Lysandre's avatar
Lysandre committed
393
            - run: ./.circleci/deploy.sh
394

Aymeric Augustin's avatar
Aymeric Augustin committed
395
396
397
398
    check_code_quality:
        working_directory: ~/transformers
        docker:
            - image: circleci/python:3.6
Aymeric Augustin's avatar
Aymeric Augustin committed
399
        resource_class: medium
400
401
        environment:
            TRANSFORMERS_IS_CI: yes
Aymeric Augustin's avatar
Aymeric Augustin committed
402
403
404
        parallelism: 1
        steps:
            - checkout
405
406
            - restore_cache:
                  keys:
Lysandre Debut's avatar
Lysandre Debut committed
407
408
                      - v0.4-code_quality-{{ checksum "setup.py" }}
                      - v0.4-{{ checksum "setup.py" }}
409
            - run: pip install --upgrade pip
410
            - run: pip install isort
411
            - run: pip install .[all,quality]
412
            - save_cache:
Lysandre Debut's avatar
Lysandre Debut committed
413
                  key: v0.4-code_quality-{{ checksum "setup.py" }}
414
415
                  paths:
                      - '~/.cache/pip'
416
417
            - run: black --check examples tests src utils
            - run: isort --check-only examples tests src utils
Sylvain Gugger's avatar
Sylvain Gugger committed
418
            - run: python utils/custom_init_isort.py --check_only
419
            - run: flake8 examples tests src utils
Sylvain Gugger's avatar
Sylvain Gugger committed
420
            - run: python utils/style_doc.py src/transformers docs/source --max_len 119 --check_only
421
            - run: python utils/check_copies.py
422
            - run: python utils/check_table.py
423
            - run: python utils/check_dummies.py
424
            - run: python utils/check_repo.py
425
            - run: python utils/check_inits.py
426

427
    check_repository_consistency:
R茅mi Louf's avatar
R茅mi Louf committed
428
429
        working_directory: ~/transformers
        docker:
430
            - image: circleci/python:3.6
R茅mi Louf's avatar
R茅mi Louf committed
431
432
433
434
        resource_class: small
        parallelism: 1
        steps:
            - checkout
435
            - run: pip install requests
R茅mi Louf's avatar
R茅mi Louf committed
436
            - run: python ./utils/link_tester.py
437
438
439
440
441
442
443

# TPU JOBS
    run_examples_tpu:
        docker:
            - image: circleci/python:3.6
        environment:
            OMP_NUM_THREADS: 1
444
            TRANSFORMERS_IS_CI: yes
445
446
447
448
449
450
451
452
453
454
455
456
457
        resource_class: xlarge
        parallelism: 1
        steps:
            - checkout
            - go/install
            - *checkout_ml_testing
            - gcp-gke/install
            - gcp-gke/update-kubeconfig-with-credentials:
                  cluster: $GKE_CLUSTER
                  perform-login: true
            - setup_remote_docker
            - *build_push_docker
            - *deploy_cluster
458

459
460
461
462
463
464
465
466
467
    cleanup-gke-jobs:
        docker:
            - image: circleci/python:3.6
        steps:
            - gcp-gke/install
            - gcp-gke/update-kubeconfig-with-credentials:
                  cluster: $GKE_CLUSTER
                  perform-login: true
            - *delete_gke_jobs
468

LysandreJik's avatar
LysandreJik committed
469
470
471
472
workflow_filters: &workflow_filters
    filters:
        branches:
            only:
Lysandre's avatar
Lysandre committed
473
                - master
474
workflows:
LysandreJik's avatar
LysandreJik committed
475
476
477
    version: 2
    build_and_test:
        jobs:
Aymeric Augustin's avatar
Aymeric Augustin committed
478
            - check_code_quality
479
            - check_repository_consistency
Aymeric Augustin's avatar
Aymeric Augustin committed
480
481
482
            - run_examples_torch
            - run_tests_custom_tokenizers
            - run_tests_torch_and_tf
483
            - run_tests_torch_and_flax
Aymeric Augustin's avatar
Aymeric Augustin committed
484
485
            - run_tests_torch
            - run_tests_tf
486
            - run_tests_flax
487
488
            - run_tests_pipelines_torch
            - run_tests_pipelines_tf
Sylvain Gugger's avatar
Sylvain Gugger committed
489
            - run_tests_hub
490
            - build_doc
Lysandre's avatar
Lysandre committed
491
            - deploy_doc: *workflow_filters
492
493
494
495
496
497
498
499
500
501
502
503
#    tpu_testing_jobs:
#        triggers:
#            - schedule:
#                # Set to run at the first minute of every hour.
#                cron: "0 8 * * *"
#                filters:
#                    branches:
#                        only:
#                            - master
#        jobs:
#            - cleanup-gke-jobs
#            - run_examples_tpu