@@ -15,18 +15,13 @@ jobs:
15
15
CARGO_TERM_COLOR : always
16
16
steps :
17
17
- uses : actions/checkout@v4
18
-
19
18
- name : Install Rust toolchains
20
19
run : rustup --quiet toolchain install --profile minimal stable nightly --component rustfmt,clippy
21
-
22
20
- uses : Swatinem/rust-cache@v2
23
-
24
21
- name : Direct minimal versions
25
22
run : cargo +nightly -Zdirect-minimal-versions update
26
-
27
23
- name : Build
28
24
run : cargo build --all-targets --all-features --locked
29
-
30
25
- name : Test
31
26
run : cargo test --all-features --locked
32
27
@@ -37,20 +32,30 @@ jobs:
37
32
CARGO_TERM_COLOR : always
38
33
steps :
39
34
- uses : actions/checkout@v4
40
-
41
35
- name : Install Rust toolchains
42
36
run : rustup --quiet toolchain install --profile minimal stable nightly --component rustfmt,clippy
43
-
44
37
- uses : Swatinem/rust-cache@v2
45
-
46
38
- name : Format
47
39
run : cargo +nightly fmt --check
48
-
49
40
- name : Build
50
41
run : cargo build --all-targets --all-features --locked
51
-
52
42
- name : Lint
53
43
run : cargo clippy --all-targets --all-features --locked -- -D warnings
54
-
55
44
- name : Test
56
45
run : cargo test --all-features --locked
46
+
47
+ examples :
48
+ runs-on : ubuntu-latest
49
+ timeout-minutes : 5 # If CI starts to take longer than this we should attempt to optimize before extending.
50
+ defaults :
51
+ run :
52
+ working-directory : examples/katib
53
+ steps :
54
+ - uses : actions/checkout@v4
55
+ - uses : astral-sh/setup-uv@v3
56
+ - name : ruff format
57
+ run : uv run -- ruff format --check
58
+ - name : ruff check
59
+ run : uv run -- ruff check
60
+ - name : pyright
61
+ run : uv run -- pyright
0 commit comments