Skip to content

Commit 5fc8e78

Browse files
committed
[workflow] Move lint job to separate file
This only needs to run on push or pull request, not daily like with the rest of the CI stuff.
1 parent 2360b41 commit 5fc8e78

2 files changed

Lines changed: 21 additions & 17 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -42,23 +42,6 @@ jobs:
4242
- run: cargo test --verbose
4343
- run: uv run --package integration pytest
4444

45-
lint:
46-
name: Lint
47-
runs-on: ubuntu-latest
48-
needs: build_and_test
49-
steps:
50-
- uses: actions/checkout@v4
51-
- run: git submodule update --init
52-
53-
- name: Setup rust
54-
run: rustup toolchain install --profile minimal -c rustfmt,clippy nightly && rustup default nightly
55-
56-
- name: rustfmt
57-
run: cargo fmt --check
58-
59-
- name: Cargo check
60-
run: cargo check
61-
6245
build_and_test_features:
6346
name: Test non-default feature sets
6447
strategy:

.github/workflows/lint.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: lint.yml
2+
on:
3+
push:
4+
pull_request:
5+
6+
jobs:
7+
lint:
8+
name: Lint
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- run: git submodule update --init
13+
14+
- name: Setup rust
15+
run: rustup toolchain install --profile minimal -c rustfmt,clippy nightly && rustup default nightly
16+
17+
- name: rustfmt
18+
run: cargo fmt --check
19+
20+
- name: Cargo check
21+
run: cargo check

0 commit comments

Comments
 (0)