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/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. 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 "$@"