chore: use http url of astchunk; use group for some dev deps
This commit is contained in:
21
.github/workflows/build-reusable.yml
vendored
21
.github/workflows/build-reusable.yml
vendored
@@ -26,21 +26,14 @@ jobs:
|
||||
- name: Install uv
|
||||
uses: astral-sh/setup-uv@v4
|
||||
|
||||
- name: Install pre-commit
|
||||
- name: Sync lint tools via uv groups (tools only)
|
||||
run: |
|
||||
uv pip install --system pre-commit
|
||||
uv sync --only-group lint
|
||||
|
||||
- name: Run pre-commit hooks (all files)
|
||||
run: |
|
||||
pre-commit run --all-files --show-diff-on-failure
|
||||
uv run pre-commit run --all-files --show-diff-on-failure
|
||||
|
||||
- name: Run ruff check
|
||||
run: |
|
||||
ruff check .
|
||||
|
||||
- name: Run ruff format check
|
||||
run: |
|
||||
ruff format --check .
|
||||
|
||||
build:
|
||||
needs: lint
|
||||
@@ -316,15 +309,15 @@ jobs:
|
||||
uv venv --python ${{ matrix.python }}
|
||||
source .venv/bin/activate || source .venv/Scripts/activate
|
||||
|
||||
# Install packages using --find-links to prioritize local builds
|
||||
# Install test tools only first, without including the project itself
|
||||
uv sync --only-group test
|
||||
|
||||
# Now install the built wheels (these are the artifacts under test)
|
||||
uv pip install --find-links packages/leann-core/dist --find-links packages/leann-backend-hnsw/dist --find-links packages/leann-backend-diskann/dist packages/leann-core/dist/*.whl || uv pip install --find-links packages/leann-core/dist packages/leann-core/dist/*.tar.gz
|
||||
uv pip install --find-links packages/leann-core/dist packages/leann-backend-hnsw/dist/*.whl
|
||||
uv pip install --find-links packages/leann-core/dist packages/leann-backend-diskann/dist/*.whl
|
||||
uv pip install packages/leann/dist/*.whl || uv pip install packages/leann/dist/*.tar.gz
|
||||
|
||||
# Install test dependencies using extras
|
||||
uv pip install -e ".[test]"
|
||||
|
||||
- name: Run tests with pytest
|
||||
env:
|
||||
CI: true
|
||||
|
||||
Reference in New Issue
Block a user