-
Notifications
You must be signed in to change notification settings - Fork 17
91 lines (88 loc) · 2.87 KB
/
checks.yaml
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
on:
workflow_call:
inputs:
dependency_generator_config_file_path:
description: "Location of the dependencies.yaml configuration file"
default: "dependencies.yaml"
required: false
type: string
enable_check_size:
description: "Whether to enable the size checker"
default: true
type: boolean
required: false
enable_check_style:
description: "Whether to enable the style checker"
default: true
type: boolean
required: false
enable_check_generated_files:
description: "Whether to enable the generated files checker"
default: true
type: boolean
required: false
enable_check_pr_job_dependencies:
description: "Whether to enable the PR workflow dependency checker"
default: true
type: boolean
required: false
ignored_pr_jobs:
description: "Space separated list of jobs to ignore when checking PR workflow dependencies"
default: ""
type: string
required: false
defaults:
run:
shell: bash
jobs:
other-checks:
runs-on: ubuntu-latest
container:
image: rapidsai/ci-conda:latest
env:
RAPIDS_GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Telemetry setup
uses: rapidsai/shared-actions/telemetry-dispatch-setup@main
continue-on-error: true
if: ${{ vars.TELEMETRY_ENABLED == 'true' }}
- name: Checkout code
uses: actions/checkout@v4
- name: Get PR Info
id: get-pr-info
uses: nv-gha-runners/get-pr-info@main
- name: Run rapids-size-checker
if: ${{ inputs.enable_check_size }}
run: rapids-size-checker
env:
RAPIDS_BASE_BRANCH: ${{ fromJSON(steps.get-pr-info.outputs.pr-info).base.ref }}
- name: Check workflow file dependencies
if: ${{ inputs.enable_check_pr_job_dependencies }}
run: rapids-check-pr-job-dependencies "${IGNORED_JOBS}"
env:
IGNORED_JOBS: ${{ inputs.ignored_pr_jobs }}
check-style:
if: ${{ inputs.enable_check_style }}
runs-on: ubuntu-latest
container:
image: rapidsai/ci-conda:latest
steps:
- name: Telemetry setup
uses: rapidsai/shared-actions/telemetry-dispatch-setup@main
continue-on-error: true
if: ${{ vars.TELEMETRY_ENABLED == 'true' }}
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get PR Info
id: get-pr-info
uses: nv-gha-runners/get-pr-info@main
- uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: pre-commit-0|${{ hashFiles('.pre-commit-config.yaml') }}
- name: Run ci/check_style.sh
run: ci/check_style.sh
env:
RAPIDS_BASE_BRANCH: ${{ fromJSON(steps.get-pr-info.outputs.pr-info).base.ref }}