Skip to content

Commit 2edfebf

Browse files
GWealecopybara-github
authored andcommitted
ci: skip the lancedb install in the GitHub Actions syncs
Co-authored-by: George Weale <gweale@google.com> PiperOrigin-RevId: 974082605
1 parent d9648b0 commit 2edfebf

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

.github/workflows/continuous-integration.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ on:
3333
permissions:
3434
contents: read
3535

36+
env:
37+
# Packages with no installable wheel for the runner; leaving one in fails
38+
# the whole sync. Nothing these jobs import reaches them, and lancedb only
39+
# arrives transitively through crewai[tools], whose 0.38.0 release shipped
40+
# no Linux x86_64 wheel. Add another as a further --no-install-package.
41+
SKIP_PACKAGE_FLAGS: --no-install-package lancedb
42+
3643
jobs:
3744
# 1. Code format and linting (Linter)
3845
lint:
@@ -96,7 +103,7 @@ jobs:
96103
# Install dependencies for target branch
97104
uv venv .venv
98105
source .venv/bin/activate
99-
uv sync --all-extras
106+
uv sync --all-extras $SKIP_PACKAGE_FLAGS
100107
101108
# Run mypy, filter for errors only, remove line numbers, and sort
102109
# We ignore exit code (|| true) because we expect errors on baseline
@@ -110,7 +117,7 @@ jobs:
110117
111118
# Re-sync dependencies in case the PR changed them
112119
source .venv/bin/activate
113-
uv sync --all-extras
120+
uv sync --all-extras $SKIP_PACKAGE_FLAGS
114121
115122
# Run mypy on PR code, apply same processing
116123
uv run mypy . | grep "error:" | sed 's/:\([0-9]\+\):/::/g' | sort > pr_errors.txt || true
@@ -165,7 +172,7 @@ jobs:
165172
run: |
166173
uv venv .venv
167174
source .venv/bin/activate
168-
uv sync --extra test
175+
uv sync --extra test $SKIP_PACKAGE_FLAGS
169176
170177
- name: List installed packages
171178
run: uv pip list
@@ -215,7 +222,7 @@ jobs:
215222
run: |
216223
uv venv .venv
217224
source .venv/bin/activate
218-
uv sync --extra test
225+
uv sync --extra test $SKIP_PACKAGE_FLAGS
219226
220227
- name: List installed packages (before reinstall)
221228
run: uv pip list

0 commit comments

Comments
 (0)