Skip to content

Commit 98b1b78

Browse files
committed
Merge branch 'refactor' into rest-api
2 parents c22d77e + 28a0175 commit 98b1b78

30 files changed

+3606
-79
lines changed

.env

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@ DATABASE_PATH2=Enter-path-2-here
55
DATABASE_NAME2=Enter-name-2-here
66
DATABASE_PATH3=Enter-path-3-here
77
DATABASE_NAME3=Enter-name-3-here
8+
9+
TEXT_EMBEDDING_URL=http://localhost:8080/vectors
10+
IMAGE_EMBEDDING_URL=http://localhost:8080/vectors_img

.github/workflows/rust.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Rust CI
2+
3+
on:
4+
push:
5+
branches: ['**']
6+
pull_request:
7+
branches: ['**']
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
build_and_test:
14+
name: Build and Test
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout Repository
18+
uses: actions/checkout@v4
19+
20+
- name: Set Up Rust
21+
uses: actions-rs/toolchain@v1
22+
with:
23+
toolchain: stable
24+
components: clippy, rustfmt
25+
override: true
26+
27+
- name: Cache Cargo Dependencies
28+
uses: Swatinem/rust-cache@v2
29+
30+
- name: Check Code Formatting
31+
run: cargo fmt --all -- --check
32+
33+
- name: Install protoc for gRPC server
34+
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
35+
36+
- name: Run Clippy (Linter)
37+
run: cargo clippy --all-targets --all-features -- -D warnings
38+
39+
- name: Build Project
40+
run: cargo build --verbose
41+
42+
- name: Run Tests
43+
run: cargo test --verbose

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44
/.idea
55
/testdb
66
/data/
7-
7+
.TODO
8+
/databases

0 commit comments

Comments
 (0)