Skip to content

ci(.github): remove post generation checks in go integration workflow #6547

ci(.github): remove post generation checks in go integration workflow

ci(.github): remove post generation checks in go integration workflow #6547

Workflow file for this run

# Copyright 2025 Google LLC
#
# Licensed 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
#
# https://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: Python
on: [push, pull_request, merge_group]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-24.04
# Presubmit jobs must complete within 5 minutes. See CONTRIBUTING.md.
timeout-minutes: 5
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/setup-librarian
with:
install-tools: "false"
- name: Display Go version
run: go version
- uses: actions/setup-python@v6
with:
python-version: "3.14"
- name: Display Python version
run: python3 --version
- name: Install pandoc
run: |
set -e
curl -fsSL --retry 5 --retry-delay 15 -o /tmp/pandoc.tar.gz https://github.com/jgm/pandoc/releases/download/$VERSION/pandoc-$VERSION-linux-amd64.tar.gz
sudo tar -xvf /tmp/pandoc.tar.gz -C /usr/local --strip-components=1
pandoc --version
env:
VERSION: 3.8.2
- name: Install gapic-generator
run: pip install gapic-generator==1.30.9
- name: Install synthtool
run: |
pip install gcp-synthtool@git+https://github.com/googleapis/synthtool@afd7725f32d522a95e964884e0fba6d0d6b4cb6a
- name: Install nox
run: |
python -m pip install --upgrade setuptools pip wheel
python -m pip install nox
python -m pip install ruff==0.14.14
- name: Verify git is available
run: git --version
- name: Run internal/librarian/python tests and check coverage
run: go run ./tool/cmd/coverage ./internal/librarian/python