From 8b547f327064f50ec1aa4a0b6261295064d0e2d2 Mon Sep 17 00:00:00 2001 From: Hau Hsu Date: Sat, 3 Jul 2021 19:49:04 +0800 Subject: [PATCH 1/4] Use Github Actions for build test Signed-off-by: Hau Hsu --- .github/workflows/build_test.yaml | 39 +++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/build_test.yaml diff --git a/.github/workflows/build_test.yaml b/.github/workflows/build_test.yaml new file mode 100644 index 0000000000..d8964a5802 --- /dev/null +++ b/.github/workflows/build_test.yaml @@ -0,0 +1,39 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the 3.9 branch + push: + branches: [ 3.9 ] + pull_request: + branches: [ 3.9 ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + with: + path: python-docs-zh-tw + + # Checks-out cpython + - uses: actions/checkout@v2 + with: + name: python/cpython + ref: 3.9 + path: cpython + + # Generate documents + - name: Run a one-line script + run: cd python-docs-zh-tw && make + From 371f264eb2e62534db60330ffdc1fde240f3497c Mon Sep 17 00:00:00 2001 From: Hau Hsu Date: Sat, 3 Jul 2021 20:17:13 +0800 Subject: [PATCH 2/4] Fix check out cpython Signed-off-by: Hau Hsu --- .github/workflows/build_test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_test.yaml b/.github/workflows/build_test.yaml index d8964a5802..16a5aca9f5 100644 --- a/.github/workflows/build_test.yaml +++ b/.github/workflows/build_test.yaml @@ -29,7 +29,7 @@ jobs: # Checks-out cpython - uses: actions/checkout@v2 with: - name: python/cpython + repository: python/cpython ref: 3.9 path: cpython From 4e43ec568271b180ae063b2022f4ca3aade56d90 Mon Sep 17 00:00:00 2001 From: Hau Hsu Date: Sun, 4 Jul 2021 17:50:57 +0800 Subject: [PATCH 3/4] Introducing an error Signed-off-by: Hau Hsu --- Makefile | 2 +- glossary.po | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index ab78bd1ab5..90348e27bd 100644 --- a/Makefile +++ b/Makefile @@ -23,7 +23,7 @@ VENV := ~/.venvs/python-docs-i18n/ PYTHON := $(shell which python3) MODE := autobuild-dev-html BRANCH = $(shell git describe --contains --all HEAD) -JOBS = 1 +JOBS = 4 .PHONY: all diff --git a/glossary.po b/glossary.po index 4d6efa66f8..83f439307e 100644 --- a/glossary.po +++ b/glossary.po @@ -58,7 +58,7 @@ msgid "" "A tool that tries to convert Python 2.x code to Python 3.x code by handling " "most of the incompatibilities which can be detected by parsing the source " "and traversing the parse tree." -msgstr "" +msgstr "這是個將 Python 2.x :cont:` :ref:" #: ../../glossary.rst:30 msgid "" @@ -69,7 +69,6 @@ msgstr "" #: ../../glossary.rst:33 msgid "abstract base class" -msgstr "" #: ../../glossary.rst:35 msgid "" From 529846d06358ce37bcd9f5a93fe5b63ee387aef5 Mon Sep 17 00:00:00 2001 From: Hau Hsu Date: Sun, 4 Jul 2021 18:27:39 +0800 Subject: [PATCH 4/4] Trigger on ci Signed-off-by: Hau Hsu --- .github/workflows/build_test.yaml | 2 +- Makefile | 2 +- glossary.po | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_test.yaml b/.github/workflows/build_test.yaml index 16a5aca9f5..264a812d35 100644 --- a/.github/workflows/build_test.yaml +++ b/.github/workflows/build_test.yaml @@ -6,7 +6,7 @@ name: CI on: # Triggers the workflow on push or pull request events but only for the 3.9 branch push: - branches: [ 3.9 ] + branches: [ 3.9, ci ] pull_request: branches: [ 3.9 ] diff --git a/Makefile b/Makefile index 90348e27bd..ab78bd1ab5 100644 --- a/Makefile +++ b/Makefile @@ -23,7 +23,7 @@ VENV := ~/.venvs/python-docs-i18n/ PYTHON := $(shell which python3) MODE := autobuild-dev-html BRANCH = $(shell git describe --contains --all HEAD) -JOBS = 4 +JOBS = 1 .PHONY: all diff --git a/glossary.po b/glossary.po index 83f439307e..4d6efa66f8 100644 --- a/glossary.po +++ b/glossary.po @@ -58,7 +58,7 @@ msgid "" "A tool that tries to convert Python 2.x code to Python 3.x code by handling " "most of the incompatibilities which can be detected by parsing the source " "and traversing the parse tree." -msgstr "這是個將 Python 2.x :cont:` :ref:" +msgstr "" #: ../../glossary.rst:30 msgid "" @@ -69,6 +69,7 @@ msgstr "" #: ../../glossary.rst:33 msgid "abstract base class" +msgstr "" #: ../../glossary.rst:35 msgid ""