Skip to content

Commit a4be6d5

Browse files
author
Daniele Briggi
committed
feat(workflow): test workflow
1 parent 0804246 commit a4be6d5

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

.github/workflows/test.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Run Tests
2+
3+
on:
4+
push:
5+
workflow_dispatch:
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
python-version: ["3.10", "3.11", "3.12"]
13+
14+
steps:
15+
- name: Check out repository code
16+
uses: actions/checkout@v4
17+
18+
- name: Set up Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
cache: 'pip'
23+
24+
- name: Install dependencies
25+
run: |
26+
pip install .[dev]
27+
28+
- name: Test
29+
run: |
30+
pytest ./tests
31+
32+
code-style:
33+
runs-on: ubuntu-latest
34+
steps:
35+
- name: Check out repository code
36+
uses: actions/checkout@v4
37+
38+
- name: Set up Python
39+
uses: actions/setup-python@v5
40+
with:
41+
python-version: '3.10'
42+
43+
- name: Run pre-commit to check code style
44+
run: |
45+
pip install pre-commit
46+
pre-commit run --all-files

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ description = "Hybird search with SQLite AI and SQLite Vector"
99
authors = [{name = "User"}]
1010
requires-python = ">=3.10"
1111
dependencies = [
12+
"attrs",
1213
"typer",
1314
"huggingface_hub",
1415
"markitdown[all]"

0 commit comments

Comments
 (0)