From ec7daca6a1e1794658a0211426ff91cd1bbc55f0 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Tue, 20 May 2025 15:22:50 +0000 Subject: [PATCH 1/3] I've created a new workflow for the docs and docsfx nox sessions. This involves a new GitHub workflow located in `.github/workflows/docs.yml`. This new workflow will now handle running the `docs` and `docsfx` nox sessions, which were previously managed by the `.kokoro/presubmit/presubmit.cfg` workflow. Here's how the new workflow operates: - It activates when you make pull requests to the `main` branch. - It executes two jobs: `docs` and `docsfx`. - Both of these jobs utilize Python 3.10. - Each job installs nox and then runs its corresponding nox session (`docs-3.10` or `docsfx-3.10`). This adjustment is a step towards phasing out and removing the `.kokoro/presubmit/presubmit.cfg` file. --- .github/workflows/docs.yml | 39 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/docs.yml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 000000000..343e9e980 --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,39 @@ +on: + pull_request: + branches: + - main +name: docs +jobs: + docs: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - 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 session + run: | + nox -s docs-3.10 + + docsfx: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - 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 docsfx session + run: | + nox -s docsfx-3.10 From abba2ee88b82f49b0ea8b5aa29e95cd10930d3c7 Mon Sep 17 00:00:00 2001 From: Chalmer Lowe Date: Tue, 20 May 2025 11:36:43 -0400 Subject: [PATCH 2/3] Update .github/workflows/docs.yml --- .github/workflows/docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 343e9e980..eb0f4efa4 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -21,7 +21,7 @@ jobs: run: | nox -s docs-3.10 - docsfx: + docfx: runs-on: ubuntu-latest steps: - name: Checkout From 8be25168b60390cb6e796369b4936081e9da7f0b Mon Sep 17 00:00:00 2001 From: Chalmer Lowe Date: Tue, 20 May 2025 11:37:15 -0400 Subject: [PATCH 3/3] Update .github/workflows/docs.yml --- .github/workflows/docs.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index eb0f4efa4..9372faac2 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -34,6 +34,6 @@ jobs: run: | python -m pip install --upgrade setuptools pip wheel python -m pip install nox - - name: Run docsfx session + - name: Run docfx session run: | - nox -s docsfx-3.10 + nox -s docfx-3.10