-
Notifications
You must be signed in to change notification settings - Fork 17
81 lines (79 loc) · 2.39 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
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:
default: true
type: boolean
required: false
enable_check_style:
default: true
type: boolean
required: false
enable_check_generated_files:
default: true
type: boolean
required: false
enable_check_pr_job_dependencies:
default: true
type: boolean
required: false
defaults:
run:
shell: bash
jobs:
other-checks:
runs-on: ubuntu-latest
container:
image: rapidsai/ci:latest
env:
RAPIDS_GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Get PR Info
id: get-pr-info
uses: rapidsai/shared-action-workflows/[email protected]
- 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
check-style:
if: ${{ inputs.enable_check_style }}
runs-on: ubuntu-latest
container:
image: rapidsai/ci:latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Get PR Info
id: get-pr-info
uses: rapidsai/shared-action-workflows/[email protected]
- uses: actions/cache@v3
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 }}
check-generated-files:
if: ${{ inputs.enable_check_generated_files }}
runs-on: ubuntu-latest
container:
image: rapidsai/ci:latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Run rapids-dependency-file-checker
run: rapids-dependency-file-checker ${{ inputs.dependency_generator_config_file_path }}