4343 - uses : actions/checkout@v4
4444
4545 - name : Setup Rust Toolchain
46- uses : actions-rs/ toolchain@v1
46+ uses : dtolnay/rust- toolchain@stable
4747 id : rust-toolchain
48- with :
49- toolchain : ${{ matrix.toolchain }}
50- override : true
5148
5249 - name : Install Protoc
5350 uses : arduino/setup-protoc@v3
@@ -64,46 +61,30 @@ jobs:
6461 uses : actions/cache@v4
6562 with :
6663 path : ~/.cargo
67- key : cargo-cache-${{ steps.rust-toolchain.outputs.rustc_hash }}-${{ hashFiles('Cargo.lock') }}
64+ key : cargo-cache-${{ steps.rust-toolchain.outputs.cachekey }}-${{ hashFiles('Cargo.lock') }}
6865
6966 - name : Check Formatting
70- uses : actions-rs/cargo@v1
7167 if : ${{ matrix.python-version == '3.10' && matrix.toolchain == 'stable' }}
72- with :
73- command : fmt
74- args : -- --check
68+ run : cargo fmt -- --check
7569
7670 - name : Run Clippy
77- uses : actions-rs/cargo@v1
7871 if : ${{ matrix.python-version == '3.10' && matrix.toolchain == 'stable' }}
79- with :
80- command : clippy
81- args : --all-targets --all-features -- -D clippy::all -A clippy::redundant_closure
72+ run : cargo clippy --all-targets --all-features -- -D clippy::all -A clippy::redundant_closure
8273
8374 - name : Install dependencies and build
84- run : |
85- python -m pip install uv
86- uv venv
87- source .venv/bin/activate
88- uv sync --dev
75+ uses : astral-sh/setup-uv@v5
76+ with :
77+ enable-cache : true
8978
9079 - name : Run tests
9180 env :
9281 RUST_BACKTRACE : 1
93- run : |
94- git submodule update --init
95- source venv/bin/activate
96- pip install -e . -vv
97- pytest -v .
82+ run : uv run pytest -v .
9883
9984 - name : FFI unit tests
10085 run : |
101- source venv/bin/activate
102- pip install -e . -vv
103- pip install maturin==1.5.1
104- cd examples/ffi-table-provider
105- maturin develop --release --strip
106- pytest python/tests/_test_table_provider.py
86+ uv run maturin develop --release --strip
87+ uv run pytest python/tests/_test_table_provider.py
10788
10889 - name : Cache the generated dataset
10990 id : cache-tpch-dataset
@@ -120,7 +101,5 @@ jobs:
120101
121102 - name : Run TPC-H examples
122103 run : |
123- source venv/bin/activate
124- cd examples/tpch
125- python convert_data_to_parquet.py
126- pytest _tests.py
104+ uv run python convert_data_to_parquet.py
105+ uv run pytest _tests.py
0 commit comments