From 12a2163c8f4a8aea7bc393018914de2ab66de47d Mon Sep 17 00:00:00 2001 From: Pete Gadomski Date: Fri, 7 Feb 2025 13:55:15 -0700 Subject: [PATCH 1/2] ci: use unbundled duckdb to speed things up --- .github/workflows/ci.yaml | 20 ++++++++++++++++++-- scripts/test | 6 ------ 2 files changed, 18 insertions(+), 8 deletions(-) delete mode 100755 scripts/test diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 64c4ba2..52beb63 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -26,9 +26,25 @@ jobs: - uses: actions/checkout@v4 - uses: astral-sh/setup-uv@v3 - uses: Swatinem/rust-cache@v2 + - name: Download libduckdb (macos) + if: matrix.os == 'macos-latest' + run: | + wget https://github.com/duckdb/duckdb/releases/download/v1.1.3/libduckdb-osx-universal.zip + unzip libduckdb-osx-universal.zip -d libduckdb + echo "DYLD_LIBRARY_PATH=libduckdb" >> $GITHUB_ENV + echo "LIBRARY_PATH=libduckdb" >> $GITHUB_ENV + - name: Download libduckdb (ubuntu) + if: matrix.os == 'ubuntu-latest' + run: | + wget https://github.com/duckdb/duckdb/releases/download/v1.1.3/libduckdb-linux-amd64.zip + unzip libduckdb-linux-amd64.zip -d libduckdb + echo "LD_LIBRARY_PATH=libduckdb" >> $GITHUB_ENV + echo "LIBRARY_PATH=libduckdb" >> $GITHUB_ENV - name: Sync - run: uv sync + run: uv sync --no-install-project + - name: Build + run: uv run maturin dev --uv --no-default-features - name: Lint run: scripts/lint - name: Test - run: scripts/test + run: uv run pytest diff --git a/scripts/test b/scripts/test deleted file mode 100755 index 29b8868..0000000 --- a/scripts/test +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env sh - -set -e - -uv run maturin dev --uv -uv run pytest "$@" From 20aeea7ba083e7fd8dd1f9a31d6771043230e703 Mon Sep 17 00:00:00 2001 From: Pete Gadomski Date: Fri, 7 Feb 2025 13:58:17 -0700 Subject: [PATCH 2/2] docs: update readme --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 47b5c03..6cb8da4 100644 --- a/README.md +++ b/README.md @@ -78,7 +78,8 @@ Then: ```shell git clone git@github.com:gadomski/stacrs.git cd stacrs -scripts/test # This will take a little while while the Rust dependencies build, especially DuckDB +uv sync +uv run pytest ``` See [CONTRIBUTING.md](./CONTRIBUTING.md) for more information about contributing to this project.