Skip to content

Commit 85e8b08

Browse files
Lint katib example
1 parent 38ecce9 commit 85e8b08

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

.github/workflows/main.yaml

+16-11
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,13 @@ jobs:
1515
CARGO_TERM_COLOR: always
1616
steps:
1717
- uses: actions/checkout@v4
18-
1918
- name: Install Rust toolchains
2019
run: rustup --quiet toolchain install --profile minimal stable nightly --component rustfmt,clippy
21-
2220
- uses: Swatinem/rust-cache@v2
23-
2421
- name: Direct minimal versions
2522
run: cargo +nightly -Zdirect-minimal-versions update
26-
2723
- name: Build
2824
run: cargo build --all-targets --all-features --locked
29-
3025
- name: Test
3126
run: cargo test --all-features --locked
3227

@@ -37,20 +32,30 @@ jobs:
3732
CARGO_TERM_COLOR: always
3833
steps:
3934
- uses: actions/checkout@v4
40-
4135
- name: Install Rust toolchains
4236
run: rustup --quiet toolchain install --profile minimal stable nightly --component rustfmt,clippy
43-
4437
- uses: Swatinem/rust-cache@v2
45-
4638
- name: Format
4739
run: cargo +nightly fmt --check
48-
4940
- name: Build
5041
run: cargo build --all-targets --all-features --locked
51-
5242
- name: Lint
5343
run: cargo clippy --all-targets --all-features --locked -- -D warnings
54-
5544
- name: Test
5645
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

Comments
 (0)