Skip to content

Commit 9fd7e6f

Browse files
authored
Minor: split datafusion-cli testing into its own CI job (#15075)
* Minor: split datafusion-cli testing into its own CI job * fix
1 parent b337fbc commit 9fd7e6f

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
@@ -218,7 +218,7 @@ jobs:
218218
- name: Check datafusion-functions (string_expressions)
219219
run: cargo check --profile ci --all-targets --no-default-features --features=string_expressions -p datafusion-functions
220220

221-
# Run tests
221+
# Library and integration tests
222222
linux-test:
223223
name: cargo test (amd64)
224224
needs: linux-build-lib
@@ -232,6 +232,36 @@ jobs:
232232
run: rustup toolchain install stable
233233
- name: Install Protobuf Compiler
234234
run: sudo apt-get install -y protobuf-compiler
235+
- name: Run tests (excluding doctests and datafusion-cli)
236+
env:
237+
RUST_BACKTRACE: 1
238+
run: |
239+
cargo test \
240+
--profile ci \
241+
--exclude datafusion-examples \
242+
--exclude ffi_example_table_provider \
243+
--exclude datafusion-benchmarks \
244+
--exclude datafusion-cli \
245+
--workspace \
246+
--lib \
247+
--tests \
248+
--bins \
249+
--features serde,avro,json,backtrace,integration-tests
250+
- name: Verify Working Directory Clean
251+
run: git diff --exit-code
252+
253+
# datafusion-cli tests
254+
linux-test-datafusion-cli:
255+
name: cargo test datafusion-cli (amd64)
256+
needs: linux-build-lib
257+
runs-on: ubuntu-latest
258+
steps:
259+
- uses: actions/checkout@v4
260+
with:
261+
submodules: true
262+
fetch-depth: 1
263+
- name: Setup Rust toolchain
264+
run: rustup toolchain install stable
235265
- name: Setup Minio - S3-compatible storage
236266
run: |
237267
docker run -d --name minio-container \
@@ -252,13 +282,14 @@ jobs:
252282
AWS_SECRET_ACCESS_KEY: TEST-DataFusionPassword
253283
TEST_STORAGE_INTEGRATION: 1
254284
AWS_ALLOW_HTTP: true
255-
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
285+
run: cargo test --profile ci -p datafusion-cli --lib --tests --bins
256286
- name: Verify Working Directory Clean
257287
run: git diff --exit-code
258288
- name: Minio Output
259289
if: ${{ !cancelled() }}
260290
run: docker logs minio-container
261291

292+
262293
linux-test-example:
263294
name: cargo examples (amd64)
264295
needs: linux-build-lib

0 commit comments

Comments
 (0)