-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
50 lines (44 loc) · 1.27 KB
/
lint.yml
File metadata and controls
50 lines (44 loc) · 1.27 KB
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
name: XGBoost CI (Lint)
on:
push:
branches:
- master
- 'release_*'
pull_request:
permissions:
contents: read # to fetch code (actions/checkout)
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
BRANCH_NAME: >-
${{ github.event.pull_request.number && 'PR-' }}${{ github.event.pull_request.number || github.ref_name }}
jobs:
clang-tidy:
name: Run clang-tidy
runs-on:
- runs-on=${{ github.run_id }}
- runner=linux-amd64-cpu
- tag=lint-clang-tidy
steps:
- uses: actions/checkout@v6.0.2
with:
submodules: "true"
- name: Log into Docker registry (AWS ECR)
run: bash ops/pipeline/login-docker-registry.sh
- run: bash ops/pipeline/run-clang-tidy.sh
python-mypy:
runs-on: ubuntu-latest
name: Type checks for the Python package
steps:
- uses: actions/checkout@v6.0.2
with:
submodules: 'true'
- uses: dmlc/xgboost-devops/actions/miniforge-setup@main
with:
environment-name: python_lint
environment-file: ops/conda_env/python_lint.yml
- name: Run mypy
shell: bash -el {0}
run: |
python ops/script/type_check_python.py