Skip to content

Commit 7139e0d

Browse files
authored
ops: also install optional dependencies in workflow/precommit (#751)
1 parent 4eeb93b commit 7139e0d

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.github/workflows/_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
- name: Python build
4848
run: |
4949
source .venv/bin/activate
50-
maturin develop
50+
maturin develop -E all
5151
- name: Python type check (mypy)
5252
run: |
5353
source .venv/bin/activate

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ repos:
2828
hooks:
2929
- id: maturin-develop
3030
name: maturin develop
31-
entry: maturin develop
31+
entry: maturin develop -E all
3232
language: system
3333
files: ^(python/|src/|Cargo\.toml|pyproject\.toml)
3434
pass_filenames: false

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ features = ["pyo3/extension-module"]
3232
test = ["pytest"]
3333
dev = ["ruff", "pre-commit"]
3434
embeddings = ["sentence-transformers>=3.3.1"]
35+
all = ["cocoindex[embeddings]"]
3536

3637
[tool.mypy]
3738
python_version = "3.11"

0 commit comments

Comments
 (0)