Skip to content

Commit 2a945be

Browse files
Merge remote-tracking branch 'origin/main' into task_engine
2 parents 88ca58d + 824ea0d commit 2a945be

306 files changed

Lines changed: 1569 additions & 554 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Deploy BigFrames docs to GitHub Pages
2+
3+
on:
4+
# Runs on pushes targeting the default branch
5+
push:
6+
branches: ["main"]
7+
paths:
8+
- "packages/bigframes/docs/**"
9+
- ".github/workflows/bigframes-docs-deploy.yaml"
10+
11+
# Allows you to run this workflow manually from the Actions tab
12+
workflow_dispatch:
13+
14+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
15+
permissions:
16+
contents: read
17+
pages: write
18+
id-token: write
19+
20+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
21+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
22+
concurrency:
23+
group: "pages"
24+
cancel-in-progress: false
25+
26+
jobs:
27+
# Build job
28+
build:
29+
runs-on: ubuntu-latest
30+
steps:
31+
- name: Checkout
32+
uses: actions/checkout@v6
33+
# Use a fetch-depth of 2 to avoid error `fatal: origin/main...HEAD: no merge base`
34+
# See https://github.com/googleapis/google-cloud-python/issues/12013
35+
# and https://github.com/actions/checkout#checkout-head.
36+
with:
37+
fetch-depth: 2
38+
- name: Setup Python
39+
uses: actions/setup-python@v6
40+
with:
41+
python-version: "3.10"
42+
- name: Install nox
43+
run: |
44+
python -m pip install --upgrade setuptools pip wheel
45+
python -m pip install nox
46+
- name: Run docs
47+
working-directory: ./packages/bigframes
48+
run: |
49+
nox -s docs
50+
- name: Upload artifact
51+
uses: actions/upload-pages-artifact@v5
52+
with:
53+
path: packages/bigframes/docs/_build/html/
54+
55+
# Deployment job
56+
deploy:
57+
environment:
58+
name: github-pages
59+
url: ${{ steps.deployment.outputs.page_url }}
60+
runs-on: ubuntu-latest
61+
needs: build
62+
steps:
63+
- name: Deploy to GitHub Pages
64+
id: deployment
65+
uses: actions/deploy-pages@v5
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: check that Librarian and legacylibrarian configs are consistent
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- main
7+
permissions:
8+
contents: read
9+
jobs:
10+
config-check:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v6
14+
# Use this action, rather than a file filter so that we can make this
15+
# mandatory.
16+
# See https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#example-including-branches
17+
# for more details.
18+
- uses: dorny/paths-filter@v4
19+
id: filter
20+
with:
21+
filters: |
22+
librarian:
23+
- 'librarian.yaml'
24+
- '.librarian/config.yaml'
25+
- '.librarian/state.yaml'
26+
- name: Config check
27+
id: config-check
28+
if: steps.filter.outputs.librarian == 'true'
29+
run: |
30+
V=$(go run github.com/googleapis/librarian/cmd/librarian@latest config get version)
31+
go run "github.com/googleapis/librarian/tool/cmd/configcheck@${V}" .
32+
- name: Report any failures
33+
if: failure() && steps.config-check.outcome == 'failure'
34+
run: |
35+
echo "Library configuration is different between state.yaml and librarian.yaml.
36+
Update library configuration in the configs according to the error message and
37+
regenerate libraries using:
38+
39+
V=\$(go run github.com/googleapis/librarian/cmd/librarian@latest config get version)
40+
go run github.com/googleapis/librarian/cmd/librarian@\${V} generate --all
41+
"
42+
# Make sure this step fails too, so that it's highlighted in the action logs.
43+
exit 1

.librarian/generator-input/client-post-processing/bigtable-integration.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,8 +565,14 @@ replacements:
565565
def mypy(session):
566566
"""Verify type hints are mypy compatible."""
567567
session.install("-e", ".")
568+
# TODO(https://github.com/googleapis/google-cloud-python/issues/16984):
569+
# Update to the latest version of mypy
568570
session.install(
569-
"mypy", "types-setuptools", "types-protobuf", "types-mock", "types-requests"
571+
"mypy<2.0.0",
572+
"types-setuptools",
573+
"types-protobuf",
574+
"types-mock",
575+
"types-requests",
570576
)
571577
session.install("google-cloud-testutils")
572578
session.run("mypy", "-p", "google.cloud.bigtable.data")

0 commit comments

Comments
 (0)