forked from ray-project/ray
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlint.rayci.yml
98 lines (85 loc) · 2.64 KB
/
lint.rayci.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
group: lint
steps:
- label: ":lint-roller: lint: clang format"
depends_on:
- forge
commands:
- pip install -c python/requirements_compiled.txt clang-format
- ./ci/lint/check-git-clang-format-output.sh
- label: ":lint-roller: lint: code format"
depends_on:
- forge
commands:
- pip install -c python/requirements_compiled.txt -r python/requirements/lint-requirements.txt
- FORMAT_SH_PRINT_DIFF=1 ./ci/lint/format.sh --all-scripts
- label: ":lint-roller: lint: untested code snippet"
depends_on:
- forge
commands:
- pip install -c python/requirements_compiled.txt semgrep
- semgrep ci --config semgrep.yml
- label: ":lint-roller: lint: banned words"
depends_on:
- forge
commands:
- ./ci/lint/check-banned-words.sh
- label: ":lint-roller: lint: doc readme"
depends_on:
- forge
commands:
- pip install -c python/requirements_compiled.txt docutils
- cd python && python setup.py check --restructuredtext --strict --metadata
- label: ":lint-roller: lint: dashboard format"
depends_on:
- forge
commands:
- ./ci/lint/check-dashboard-format.sh
- label: ":lint-roller: lint: copyright format"
depends_on:
- forge
commands:
- ./ci/lint/copyright-format.sh -c
- label: ":lint-roller: lint: bazel team"
depends_on:
- forge
commands:
- bazel query 'kind("cc_test", //...)' --output=xml | python ./ci/lint/check-bazel-team-owner.py
- bazel query 'kind("py_test", //...)' --output=xml | python ./ci/lint/check-bazel-team-owner.py
- label: ":lint-roller: lint: bazel buildifier"
depends_on:
- forge
commands:
- ./ci/lint/check-bazel-buildifier.sh
- label: ":lint-roller: lint: pytest format"
depends_on:
- forge
commands:
- pip install -c python/requirements_compiled.txt yq
- ./ci/lint/check-pytest-format.sh
- label: ":lint-roller: lint: test coverage"
depends_on:
- forge
commands:
- python ci/pipeline/check-test-run.py
- label: ":lint-roller: lint: api annotations"
depends_on:
- forge
instance_type: medium
commands:
- RAY_DISABLE_EXTRA_CPP=1 pip install -e python/[all]
- ./ci/lint/check_api_annotations.py
- label: ":lint-roller: lint: documentation style"
depends_on:
- forge
commands:
- ./ci/lint/check-documentation-style.sh
- label: ":lint-roller: lint: all linkcheck"
instance_type: medium
commands:
- make -C doc/ linkcheck_all
depends_on: docbuild
job_env: docbuild
tags:
- oss
- skip-on-premerge
soft_fail: true