Skip to content
This repository was archived by the owner on Apr 21, 2026. It is now read-only.

gitignore: fully ignore .thoth directories #2

gitignore: fully ignore .thoth directories

gitignore: fully ignore .thoth directories #2

Workflow file for this run

name: ci
on:
push:
tags: [ 'v*' ]
branches: [ master ]
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-D warnings"
# Cache sccache artifacts under target/.
CARGO_INCREMENTAL: 0
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
fmt:
name: fmt-check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: install toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- run: cargo fmt --all -- --check
clippy:
name: clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: install toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- uses: Swatinem/rust-cache@v2
- run: cargo clippy --workspace --all-targets -- -D warnings
test:
name: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: install toolchain
uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: cargo test --workspace --all-targets
# Optional dogfood gate: self-index this repo and run the precision@k gold
# set. Kept in its own job so a recall regression shows up as a distinct
# red check without blocking unit tests.
eval:
name: eval (precision@k)
runs-on: ubuntu-latest
needs: [test]
steps:
- uses: actions/checkout@v4
- name: install toolchain
uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: build release
run: cargo build --release -p thoth-cli
- name: self-index
run: |
mkdir -p .thoth-self
./target/release/thoth --root .thoth-self init
./target/release/thoth --root .thoth-self index .
- name: eval
run: ./target/release/thoth --root .thoth-self eval --gold eval/gold.toml -k 8