Skip to content

Commit 5dd4c41

Browse files
Merge pull request #10 from TomAugspurger/tom/fix/ci
Added pre-commit, linting to CI
2 parents 286976d + f4a5385 commit 5dd4c41

File tree

5 files changed

+68
-5
lines changed

5 files changed

+68
-5
lines changed

.github/workflows/cron.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
# currently set to 5:00 UTC and takes ~12 hours
1010
- cron: "15 18 * * *"
1111
workflow_dispatch: {}
12-
12+
1313
jobs:
1414
setup:
1515
runs-on: ubuntu-latest

.github/workflows/pr.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: pr
2+
3+
on:
4+
push:
5+
branches:
6+
- "main"
7+
pull_request:
8+
branches:
9+
- "main"
10+
workflow_dispatch: # allows you to trigger manually
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
check-style:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v4
22+
with:
23+
fetch-depth: 0
24+
- uses: actions/setup-python@v3
25+
- uses: pre-commit/[email protected]

.pre-commit-config.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,39 @@ repos:
1616
^cpp/cmake/thirdparty/patches/.*|
1717
^python/cudf/cudf/tests/data/subword_tokenizer_data/.*
1818
)
19+
- repo: https://github.com/codespell-project/codespell
20+
rev: v2.3.0
21+
hooks:
22+
- id: codespell
23+
exclude: |
24+
(?x)^(
25+
.*test.*|
26+
^CHANGELOG.md$
27+
)
28+
# Include this if we add any Python code
29+
# - repo: https://github.com/astral-sh/ruff-pre-commit
30+
# rev: v0.9.3
31+
# hooks:
32+
# - id: ruff
33+
# args: ["--fix"]
34+
# - id: ruff-format
35+
- repo: https://github.com/rapidsai/pre-commit-hooks
36+
rev: v0.6.0
37+
hooks:
38+
- id: verify-copyright
39+
exclude: |
40+
(?x)^(
41+
cpp/include/cudf_test/cxxopts[.]hpp$|
42+
cpp/src/io/parquet/ipc/Message_generated[.]h$|
43+
cpp/src/io/parquet/ipc/Schema_generated[.]h$|
44+
cpp/cmake/Modules/FindCUDAToolkit[.]cmake$
45+
)
46+
- id: verify-alpha-spec
47+
- id: verify-codeowners
48+
args: [--fix, --project-prefix=cudf]
49+
- repo: https://github.com/shellcheck-py/shellcheck-py
50+
rev: v0.10.0.1
51+
hooks:
52+
- id: shellcheck
53+
args: ["--severity=warning"]
54+
files: ^scripts/

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Dask Upstream Testing
22

3+
[![Test dask-upstream](https://github.com/rapidsai/dask-upstream-testing/actions/workflows/cron.yaml/badge.svg)](https://github.com/rapidsai/dask-upstream-testing/actions/workflows/cron.yaml)
4+
35
This repository contains the scripts to run Dask's `gpu`-marked tests on a schedule.
46

57
## Version Policy

scripts/test.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
# SPDX-FileCopyrightText: Copyright (c) 2023-2025, NVIDIA CORPORATION & AFFILIATES.
33

44
echo "[testing dask]"
5-
pushd dask
5+
pushd dask || exit
66
pytest dask -v -m gpu
77
dask_status=$?
8-
popd
8+
popd || exit
99

1010
echo "[testing distributed]"
11-
pushd distributed
11+
pushd distributed || exit
1212
pytest distributed -v -m gpu --runslow
1313
distributed_status=$?
14-
popd
14+
popd || exit
1515

1616
if [ $dask_status -ne 0 ] || [ $distributed_status -ne 0 ]; then
1717
echo "Tests faild"

0 commit comments

Comments
 (0)