Skip to content

Commit

Permalink
Split lint / test
Browse files Browse the repository at this point in the history
  • Loading branch information
timonv committed Jan 15, 2025
1 parent 2a4eb70 commit 313b717
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ concurrency:
env:
TAVILY_API_KEY: noop
KWAAK_OPENAI_API_KEY: noop
GITHUB_TOKEN: noop
KWAAK_GITHUB_TOKEN: noop

jobs:
test:
Expand Down Expand Up @@ -43,7 +43,7 @@ jobs:
tool: cargo-llvm-cov,cargo-nextest
- name: Generate code coverage
run: |
cargo +nightly llvm-cov nextest --all-features --lcov --output-path lcov.info -j 2
cargo +nightly llvm-cov nextest --all-features --lcov --output-path lcov.info
- name: Coveralls
uses: coverallsapp/github-action@v2
30 changes: 26 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,35 @@ env:
RUSTFLAGS: "-Dwarnings"
TAVILY_API_KEY: noop
KWAAK_OPENAI_API_KEY: noop
GITHUB_TOKEN: noop
KWAAK_GITHUB_TOKEN: noop

jobs:
test:
name: Test & lint
name: Test
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Install Protoc
uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@v2
with:
tool: cargo-nextest
# Required for copypasta builds on linux
- name: Install libxcb
run: sudo apt install libxcb1-dev libxcb-shape0-dev libxcb-xfixes0-dev
- name: "Test"
run: cargo nextest run --all-features --no-fail-fast

lint:
name: Lint
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
Expand Down Expand Up @@ -47,5 +71,3 @@ jobs:
# uses: EmbarkStudios/cargo-deny-action@v2
- name: clippy
run: cargo clippy --all-targets --all-features
- name: "Test"
run: cargo nextest run --all-features -j 2

0 comments on commit 313b717

Please sign in to comment.