Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions adbc_drivers_dev/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,9 @@ def process_secrets_and_permissions(self) -> "GenerateConfig":
"GCLOUD_WORKLOAD_IDENTITY_PROVIDER"
)

if self.private:
all_secrets["COLUMNAR_CLOUD_API_TOKEN"] = "COLUMNAR_CLOUD_API_TOKEN"

self._processed_secrets["all"] = all_secrets

# Set permissions
Expand Down
23 changes: 22 additions & 1 deletion adbc_drivers_dev/templates/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -617,12 +617,15 @@ jobs:
needs:
- package
strategy:
fail-fast: true
fail-fast: false
matrix:
include:
- { platform: linux, arch: amd64, runner: ubuntu-latest }
- { platform: macos, arch: arm64, runner: macos-latest }
- { platform: windows, arch: amd64, runner: windows-latest }
<% if environment %>
environment: <{environment}>
<% endif %>
steps:
# for now, install dbc from main
- uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
Expand Down Expand Up @@ -668,8 +671,26 @@ jobs:
persist-credentials: false
<% endif %>
- name: load package
env:
COLUMNAR_CLOUD_API_TOKEN: ${{ secrets.COLUMNAR_CLOUD_API_TOKEN }}
<% if secrets["build:test"] %>
<% for name, val in secrets["build:test"].items() %>
<{name}>: ${{ secrets.<{val}> }}
<% endfor %>
<% endif %>
working-directory: <{ lang_subdir }>
run: |
if [[ -f ci/scripts/pre-build.sh ]]; then
echo "Loading pre-build"
./ci/scripts/pre-build.sh test ${{ matrix.platform }} ${{ matrix.arch }}
fi

if [[ -f .env.ci ]]; then
source .env.ci
fi

export COLUMNAR_DRIVER_LICENSE_KEY=$(curl --silent --fail -XGET -H 'Content-Type: application/json' -H "Authorization: Bearer $COLUMNAR_CLOUD_API_TOKEN" https://heimdall.columnar.tech/trial_license)

pixi exec -s adbc-driver-manager -s pyarrow -s pytest python -m pytest -vs ci/test_package.py

release:
Expand Down