From 8d32f6d30b6e4fb8a3f2cc8fcb152bcaa853b905 Mon Sep 17 00:00:00 2001 From: fMeow Date: Fri, 13 Sep 2024 13:46:30 +0800 Subject: [PATCH 1/2] ci: add test for different features --- .github/workflows/CI.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index da9d92f..e9afc60 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -36,6 +36,24 @@ jobs: - run: cargo test working-directory: pyo3-polars + - run: cargo test --all-features + working-directory: pyo3-polars + + - run: cargo test --features dtype-categorical + working-directory: pyo3-polars + + - run: cargo test --features dtype-full + working-directory: pyo3-polars + + - run: cargo test --features dtype-struct + working-directory: pyo3-polars + + - run: cargo test --features dtype-array + working-directory: pyo3-polars + + - run: cargo test --features lazy + working-directory: pyo3-polars + - run: make install working-directory: example/extend_polars_python_dispatch From 4fd1a2db7cf99a864729fc471b8d3ae666658891 Mon Sep 17 00:00:00 2001 From: fMeow Date: Sat, 2 Nov 2024 09:52:59 +0800 Subject: [PATCH 2/2] ci: use cargo hack test for each feature --- .github/workflows/CI.yml | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index e9afc60..a6cde3e 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -36,22 +36,8 @@ jobs: - run: cargo test working-directory: pyo3-polars - - run: cargo test --all-features - working-directory: pyo3-polars - - - run: cargo test --features dtype-categorical - working-directory: pyo3-polars - - - run: cargo test --features dtype-full - working-directory: pyo3-polars - - - run: cargo test --features dtype-struct - working-directory: pyo3-polars - - - run: cargo test --features dtype-array - working-directory: pyo3-polars - - - run: cargo test --features lazy + - uses: taiki-e/install-action@cargo-hack + - run: cargo hack test --each-feature working-directory: pyo3-polars - run: make install