Skip to content

Commit 327c1e4

Browse files
committed
Minor: split datafusion-cli testing into its own CI job
1 parent 51f0833 commit 327c1e4

File tree

1 file changed

+33
-2
lines changed

1 file changed

+33
-2
lines changed

.github/workflows/rust.yml

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ jobs:
166166
- name: Check datafusion-functions (string_expressions)
167167
run: cargo check --profile ci --all-targets --no-default-features --features=string_expressions -p datafusion-functions
168168

169-
# Run tests
169+
# Library and integration tests
170170
linux-test:
171171
name: cargo test (amd64)
172172
needs: linux-build-lib
@@ -180,6 +180,36 @@ jobs:
180180
run: rustup toolchain install stable
181181
- name: Install Protobuf Compiler
182182
run: sudo apt-get install -y protobuf-compiler
183+
- name: Run tests (excluding doctests and datafusion-cli)
184+
env:
185+
RUST_BACKTRACE: 1
186+
run: |
187+
cargo test \
188+
--profile ci \
189+
--exclude datafusion-examples \
190+
--exclude ffi_example_table_provider \
191+
--exclude datafusion-benchmarks \
192+
--exclude datafusion-cli \
193+
--workspace \
194+
--lib \
195+
--tests \
196+
--bins \
197+
--features avro,json,backtrace,integration-tests
198+
- name: Verify Working Directory Clean
199+
run: git diff --exit-code
200+
201+
# datafusion-cli tests
202+
linux-test-datafusion-cli:
203+
name: cargo test datafusion-cli (amd64)
204+
needs: linux-build-lib
205+
runs-on: ubuntu-latest
206+
steps:
207+
- uses: actions/checkout@v4
208+
with:
209+
submodules: true
210+
fetch-depth: 1
211+
- name: Setup Rust toolchain
212+
run: rustup toolchain install stable
183213
- name: Setup Minio - S3-compatible storage
184214
run: |
185215
docker run -d --name minio-container \
@@ -200,13 +230,14 @@ jobs:
200230
AWS_SECRET_ACCESS_KEY: TEST-DataFusionPassword
201231
TEST_STORAGE_INTEGRATION: 1
202232
AWS_ALLOW_HTTP: true
203-
run: cargo test --profile ci --exclude datafusion-examples --exclude ffi_example_table_provider --exclude datafusion-benchmarks --workspace --lib --tests --bins --features avro,json,backtrace,integration-tests
233+
run: cargo test --profile ci -p datafusion-cli --lib --tests --bins
204234
- name: Verify Working Directory Clean
205235
run: git diff --exit-code
206236
- name: Minio Output
207237
if: ${{ !cancelled() }}
208238
run: docker logs minio-container
209239

240+
210241
linux-test-example:
211242
name: cargo examples (amd64)
212243
needs: linux-build-lib

0 commit comments

Comments
 (0)