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
5 changes: 5 additions & 0 deletions adbc_drivers_dev/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ class LangConfig(BaseModel):
default_factory=LangBuildConfig,
description="Configuration for building the driver.",
)
skip_test: bool = Field(
default=False,
alias="skip-test",
description="Whether to skip test workflows (primarily useful for build-only drivers)",
)
skip_validate: bool = Field(
default=False,
alias="skip-validate",
Expand Down
4 changes: 4 additions & 0 deletions adbc_drivers_dev/templates/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ defaults:
shell: bash

jobs:
<% if not lang_config.skip_test %>
test:
name: "Test/${{ matrix.platform }}_${{ matrix.arch }}"
runs-on: ${{ matrix.runner }}
Expand Down Expand Up @@ -266,6 +267,7 @@ jobs:
run: |
go mod tidy --diff
<% endif %>
<% endif %>

<% if not lang_config.skip_validate %>
validate:
Expand Down Expand Up @@ -450,7 +452,9 @@ jobs:

build:
name: "Build <{driver}>/${{ matrix.platform }}_${{ matrix.arch }}"
<% if not lang_config.skip_test %>
needs: test
<% endif %>
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: true
Expand Down