Skip to content

refactor(bindings/python): split layers into a package for extensibil… #7554

refactor(bindings/python): split layers into a package for extensibil…

refactor(bindings/python): split layers into a package for extensibil… #7554

# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
name: Bindings Go CI
on:
push:
branches:
- main
tags:
- '*'
pull_request:
branches:
- main
paths:
- "core/**"
- "bindings/c/**"
- "bindings/go/**"
- ".github/workflows/ci_bindings_go.yml"
- ".github/scripts/test_go_binding/matrix.yaml"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true
permissions:
contents: read
pull-requests: read
checks: write
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-go@v6
with:
go-version-file: bindings/go/go.mod
cache-dependency-path: bindings/go/go.sum
- uses: golangci/golangci-lint-action@v9
with:
version: "v2.12.2"
working-directory: bindings/go
run_examples:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-go@v6
with:
go-version-file: bindings/go/go.mod
cache-dependency-path: bindings/go/examples/guide/go.sum
# The example backs the snippet shown in the website guide. We compile it
# against the in-repo binding so a breaking API change fails CI here. It is
# not executed: running needs a locally built libopendal_c matching HEAD,
# because the published memory service module ships a prebuilt lib that can
# lag core's C ABI. Runtime is covered by the Go behavior tests, which
# build the C library locally.
- name: Build guide example
working-directory: bindings/go/examples/guide
run: go build ./...