Skip to content

Commit c3e09af

Browse files
committed
ci: fix tests and lint prerequisites
1 parent 8128ebb commit c3e09af

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/python-test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,16 @@ jobs:
3232
python-version: ${{ matrix.python-version }}
3333
- name: Setup Rust
3434
uses: actions-rust-lang/setup-rust-toolchain@v1
35+
with:
36+
cache: false
3537
- uses: Swatinem/rust-cache@v2
3638
with:
3739
workspaces: python
3840
cache-targets: false
41+
- name: Install dependencies
42+
run: |
43+
sudo apt update
44+
sudo apt install -y protobuf-compiler
3945
- name: Install uv
4046
uses: astral-sh/setup-uv@v3
4147
- name: Create virtual environment and install dependencies

.github/workflows/rust-test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ jobs:
3939
with:
4040
workspaces: rust/lance-context
4141
cache-targets: false
42+
- name: Install dependencies
43+
run: |
44+
sudo apt update
45+
sudo apt install -y protobuf-compiler
4246
- name: Build tests
4347
run: cargo test --manifest-path rust/lance-context/Cargo.toml --no-run
4448
- name: Run unit tests

python/python/lance_context/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from __future__ import annotations
22

3-
from ._internal import Context, version as _version
3+
from ._internal import Context
4+
from ._internal import version as _version
45

56
__all__ = ["Context", "__version__"]
67

0 commit comments

Comments
 (0)