Skip to content

Commit 61b31d9

Browse files
authored
build docs on master (Lightning-AI#3492)
* build docs on master * fomatting
1 parent b5dc699 commit 61b31d9

File tree

10 files changed

+23
-44
lines changed

10 files changed

+23
-44
lines changed

.github/workflows/ci_dockers.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,11 @@ name: CI build Docker
22
# https://www.docker.com/blog/first-docker-github-action-is-here
33
# https://github.com/docker/build-push-action
44
# see: https://help.github.com/en/actions/reference/events-that-trigger-workflows
5-
on:
6-
# Trigger the workflow on push or pull request, but only for the master branch
5+
on: # Trigger the workflow on push or pull request, but only for the master branch
76
push:
8-
branches:
9-
- master
7+
branches: [master]
108
pull_request:
11-
branches:
12-
- master
9+
branches: [master]
1310

1411
jobs:
1512
build-Conda:

.github/workflows/ci_pkg-install.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@ name: Install pkg
33
# see: https://help.github.com/en/actions/reference/events-that-trigger-workflows
44
on: # Trigger the workflow on push or pull request, but only for the master branch
55
push:
6-
branches:
7-
- master
6+
branches: [master]
87
pull_request:
9-
branches:
10-
- master
8+
branches: [master]
119

1210
jobs:
1311

.github/workflows/ci_pt-conda.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,9 @@ name: PyTorch & Conda
33
# see: https://help.github.com/en/actions/reference/events-that-trigger-workflows
44
on: # Trigger the workflow on push or pull request, but only for the master branch
55
push:
6-
branches:
7-
- master
6+
branches: [master]
87
pull_request:
9-
branches:
10-
- master
11-
# Trigger the workflow on push or pull request
12-
# on: [push, pull_request]
8+
branches: [master]
139

1410
jobs:
1511
conda:

.github/workflows/ci_test-base.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,9 @@ name: CI base testing
33
# see: https://help.github.com/en/actions/reference/events-that-trigger-workflows
44
on: # Trigger the workflow on push or pull request, but only for the master branch
55
push:
6-
branches:
7-
- master
6+
branches: [master]
87
pull_request:
9-
branches:
10-
- master
11-
# Trigger the workflow on push or pull request
12-
# on: [push, pull_request]
8+
branches: [master]
139

1410
jobs:
1511
doctest:

.github/workflows/ci_test-full.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,9 @@ name: CI complete testing
33
# see: https://help.github.com/en/actions/reference/events-that-trigger-workflows
44
on: # Trigger the workflow on push or pull request, but only for the master branch
55
push:
6-
branches:
7-
- master
6+
branches: [master]
87
pull_request:
9-
branches:
10-
- master
11-
# Trigger the workflow on push or pull request
12-
# on: [push, pull_request]
8+
branches: [master]
139

1410
jobs:
1511
pytest:

.github/workflows/ci_test-tpu.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ name: TPU tests
22

33
on:
44
push:
5-
branches:
6-
- master
5+
branches: [master]
76
# TODO: temporal disable TPU testing until we find way how to pass credentials to forked PRs
87
# pull_request:
98
# branches:

.github/workflows/code-formatting.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@ name: "Check Code Format"
22

33
on: # Trigger the workflow on push or pull request, but only for the master branch
44
push:
5-
branches:
6-
- master
5+
branches: [master]
76
pull_request:
8-
branches:
9-
- master
7+
branches: [master]
108

119
jobs:
1210
code-black:

.github/workflows/docker-builds.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@ name: Publish Docker Releases
33
# https://github.com/docker/build-push-action
44
on:
55
push:
6-
branches:
7-
- master
6+
branches: [master]
87
release:
9-
types:
10-
- created
8+
types: [created]
119

1210
jobs:
1311
build-Conda:

.github/workflows/docs-checks.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
name: "Docs check"
22
# https://github.com/marketplace/actions/sphinx-build
33

4-
on:
5-
- pull_request
4+
on: # Trigger the workflow on push or pull request, but only for the master branch
5+
push:
6+
branches: [master]
7+
pull_request:
8+
branches: [master]
69

710
jobs:
811
check-docs:

.github/workflows/pypi-release.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@ name: PyPI Release
33
# https://help.github.com/en/actions/reference/events-that-trigger-workflows
44
on: # Trigger the workflow on push or pull request, but only for the master branch
55
push:
6-
branches:
7-
- master
6+
branches: [master]
87
release:
9-
types:
10-
- created
8+
types: [created]
119

1210
# based on https://github.com/pypa/gh-action-pypi-publish
1311

0 commit comments

Comments
 (0)