Skip to content

Commit e6088ec

Browse files
committed
ci(docs): isolate companion checks with verified action pins
1 parent 587cd39 commit e6088ec

2 files changed

Lines changed: 46 additions & 15 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,6 @@ env:
3030
SCCACHE_IGNORE_SERVER_IO_ERROR: "true"
3131

3232
jobs:
33-
docs-review:
34-
name: Docs Review Python Example
35-
runs-on: ${{ matrix.os }}
36-
strategy:
37-
matrix:
38-
os: [ubuntu-latest, macos-latest]
39-
env:
40-
PYTHONDONTWRITEBYTECODE: "1"
41-
steps:
42-
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
43-
- name: Test with synthetic fixtures and stub gws
44-
run: |
45-
python3 --version
46-
python3 -m unittest discover -s examples/docs-review -p 'test_*.py' -v
47-
4833
changes:
4934
name: Detect Changes
5035
runs-on: ubuntu-latest

‎.github/workflows/docs-review.yml‎

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Copyright 2026 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: Docs Review Example
16+
17+
on:
18+
push:
19+
branches: [main]
20+
pull_request:
21+
branches: [main]
22+
23+
permissions:
24+
contents: read
25+
26+
concurrency:
27+
group: ${{ github.workflow }}-${{ github.ref }}
28+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
29+
30+
jobs:
31+
docs-review:
32+
name: Docs Review Python Example
33+
runs-on: ${{ matrix.os }}
34+
strategy:
35+
matrix:
36+
os: [ubuntu-latest, macos-latest]
37+
env:
38+
PYTHONDONTWRITEBYTECODE: "1"
39+
steps:
40+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
41+
with:
42+
persist-credentials: false
43+
- name: Test with synthetic fixtures and stub gws
44+
run: |
45+
python3 --version
46+
python3 -m unittest discover -s examples/docs-review -p 'test_*.py' -v

0 commit comments

Comments
 (0)