Skip to content

Commit 74d5ce8

Browse files
chore: move docs check from kokoro to GH actions (#334)
* chore: move docs check from kokoro to GH actions * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * fix typo Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 8169f2b commit 74d5ce8

File tree

4 files changed

+57
-46
lines changed

4 files changed

+57
-46
lines changed

.github/sync-repo-settings.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ branchProtectionRules:
2323
- 'unit_wo_grpc-3.6'
2424
- 'unit_wo_grpc-3.10'
2525
- 'cover'
26+
- 'docs'
2627
permissionRules:
2728
- team: actools-python
2829
permission: admin

.github/workflows/docs.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: "Docs"
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
jobs:
8+
run-docs:
9+
name: docs
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
- name: Setup Python
15+
uses: actions/setup-python@v2
16+
with:
17+
python-version: "3.7"
18+
- name: Install nox
19+
run: |
20+
python -m pip install --upgrade setuptools pip wheel
21+
python -m pip install nox
22+
- name: Run docs
23+
run: |
24+
nox -s docs docfx
25+

.github/workflows/lint.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: "Lint"
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
jobs:
8+
run-lint-mypy:
9+
name: lint-mypy
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
- name: Setup Python
15+
uses: actions/setup-python@v2
16+
with:
17+
python-version: "3.7"
18+
- name: Install nox
19+
run: |
20+
python -m pip install --upgrade setuptools pip wheel
21+
python -m pip install nox
22+
- name: Run lint
23+
run: |
24+
nox -s lint
25+
- name: Run lint_setup_py
26+
run: |
27+
nox -s lint_setup_py
28+
- name: Run mypy
29+
run: |
30+
nox -s mypy

.github/workflows/unittest_lint.yml renamed to .github/workflows/unittest.yml

Lines changed: 1 addition & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,11 @@
1-
name: "Lint / Unit tests / Cover / Mypy"
1+
name: "Unit tests"
22

33
on:
44
pull_request:
55
branches:
66
- main
77

8-
98
jobs:
10-
11-
run-lint-mypy:
12-
name: lint-mypy
13-
runs-on: ubuntu-latest
14-
15-
steps:
16-
17-
- name: Checkout
18-
uses: actions/checkout@v2
19-
20-
- name: Setup Python
21-
uses: actions/setup-python@v2
22-
with:
23-
python-version: "3.10"
24-
25-
- name: Install nox
26-
run: |
27-
python -m pip install --upgrade setuptools pip wheel
28-
python -m pip install nox
29-
30-
- name: Run lint
31-
run: |
32-
nox -s lint
33-
34-
- name: Run lint_setup_py
35-
run: |
36-
nox -s lint_setup_py
37-
38-
- name: Run mypy
39-
run: |
40-
nox -s mypy
41-
429
run-unittests:
4310
name: unit${{ matrix.option }}-${{ matrix.python }}
4411
runs-on: ubuntu-latest
@@ -58,28 +25,22 @@ jobs:
5825
python: 3.8
5926
- option: "_wo_grpc"
6027
python: 3.9
61-
6228
steps:
63-
6429
- name: Checkout
6530
uses: actions/checkout@v2
66-
6731
- name: Setup Python
6832
uses: actions/setup-python@v2
6933
with:
7034
python-version: ${{ matrix.python }}
71-
7235
- name: Install nox
7336
run: |
7437
python -m pip install --upgrade setuptools pip wheel
7538
python -m pip install nox
76-
7739
- name: Run unit tests
7840
env:
7941
COVERAGE_FILE: .coverage${{ matrix.option }}-${{matrix.python }}
8042
run: |
8143
nox -s unit${{ matrix.option }}-${{ matrix.python }}
82-
8344
- name: Upload coverage results
8445
uses: actions/upload-artifact@v2
8546
with:
@@ -91,28 +52,22 @@ jobs:
9152
runs-on: ubuntu-latest
9253
needs:
9354
- run-unittests
94-
9555
steps:
96-
9756
- name: Checkout
9857
uses: actions/checkout@v2
99-
10058
- name: Setup Python
10159
uses: actions/setup-python@v2
10260
with:
10361
python-version: "3.10"
104-
10562
- name: Install coverage
10663
run: |
10764
python -m pip install --upgrade setuptools pip wheel
10865
python -m pip install coverage
109-
11066
- name: Download coverage results
11167
uses: actions/download-artifact@v2
11268
with:
11369
name: coverage-artifacts
11470
path: .coverage-results/
115-
11671
- name: Report coverage results
11772
run: |
11873
coverage combine .coverage-results/.coverage*

0 commit comments

Comments
 (0)