chore: release main #4009
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
pull_request: | |
branches: | |
- main | |
name: docs | |
permissions: | |
contents: read | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
# Use a fetch-depth of 2 to avoid error `fatal: origin/main...HEAD: no merge base` | |
# See https://github.com/googleapis/google-cloud-python/issues/12013 | |
# and https://github.com/actions/checkout#checkout-head. | |
with: | |
fetch-depth: 2 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Install nox | |
run: | | |
python -m pip install --upgrade setuptools pip wheel | |
python -m pip install nox | |
- name: Run docs | |
env: | |
BUILD_TYPE: presubmit | |
TEST_TYPE: docs | |
PY_VERSION: "3.10" | |
run: | | |
ci/run_conditional_tests.sh | |
docfx: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
# Use a fetch-depth of 2 to avoid error `fatal: origin/main...HEAD: no merge base` | |
# See https://github.com/googleapis/google-cloud-python/issues/12013 | |
# and https://github.com/actions/checkout#checkout-head. | |
with: | |
fetch-depth: 2 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Install nox | |
run: | | |
python -m pip install --upgrade setuptools pip wheel | |
python -m pip install nox | |
- name: Run docfx | |
env: | |
BUILD_TYPE: presubmit | |
TEST_TYPE: docfx | |
PY_VERSION: "3.10" | |
run: | | |
ci/run_conditional_tests.sh |