From 707deb7a2d66d4ec7ee375083ecb056e837c7c1e Mon Sep 17 00:00:00 2001 From: Chisanan232 Date: Mon, 30 Oct 2023 08:49:58 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20=20Modify=20the=20list?= =?UTF-8?q?ening=20condition=20of=20git=20event=20about=20paths.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../workflows/test_gh_reusable_workflow.yaml | 28 ++++++++++++------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test_gh_reusable_workflow.yaml b/.github/workflows/test_gh_reusable_workflow.yaml index aad9147e..1ba2bdfd 100644 --- a/.github/workflows/test_gh_reusable_workflow.yaml +++ b/.github/workflows/test_gh_reusable_workflow.yaml @@ -8,11 +8,15 @@ on: - "release-**" - "release/**" - "master" - paths-ignore: - - ".gitcommitrules" - - ".gitignore" - - "LICENSE" - - "README.md" + paths: +# The workflow self. + - ".github/workflows/test_gh_reusable_workflow.yaml" +# The shell script only be used by this workflow. + - "scripts/ci/check_getting_output.sh" +# The shell scripts or actions this workflow would use. + - ".github/workflows/rw_build_git-tag_and_create_github-release.yaml" + - "scripts/ci/build_git-tag_or_create_github-release.sh" + - "scripts/ci/deployment_new_version_workflow.sh" pull_request: branches: @@ -21,11 +25,15 @@ on: - "release-**" - "release/**" - "master" - paths-ignore: - - ".gitcommitrules" - - ".gitignore" - - "LICENSE" - - "README.md" + paths: +# The workflow self. + - ".github/workflows/test_gh_reusable_workflow.yaml" +# The shell script only be used by this workflow. + - "scripts/ci/check_getting_output.sh" +# The shell scripts or actions this workflow would use. + - ".github/workflows/rw_build_git-tag_and_create_github-release.yaml" + - "scripts/ci/build_git-tag_or_create_github-release.sh" + - "scripts/ci/deployment_new_version_workflow.sh" jobs: test_build_git-tag_and_create_github-release: From 41cf468f2a703b81142276e73d6634326f92ba1e Mon Sep 17 00:00:00 2001 From: Chisanan232 Date: Mon, 30 Oct 2023 09:03:47 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20=20Modify=20the=20list?= =?UTF-8?q?ening=20condition=20of=20git=20event=20about=20paths=20at=20tes?= =?UTF-8?q?ting=20CI=20config.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...st_pyproject_ci_multi-tests_by_poetry.yaml | 58 ++++++++++++++--- .../test_python_project_ci_multi-tests.yaml | 62 +++++++++++++++---- .../test_python_project_ci_one-test.yaml | 61 +++++++++++++++--- 3 files changed, 149 insertions(+), 32 deletions(-) diff --git a/.github/workflows/test_pyproject_ci_multi-tests_by_poetry.yaml b/.github/workflows/test_pyproject_ci_multi-tests_by_poetry.yaml index ca973112..bdb2495c 100644 --- a/.github/workflows/test_pyproject_ci_multi-tests_by_poetry.yaml +++ b/.github/workflows/test_pyproject_ci_multi-tests_by_poetry.yaml @@ -8,11 +8,30 @@ on: - "release-**" - "release/**" - "master" - paths-ignore: - - ".gitcommitrules" - - ".gitignore" - - "LICENSE" - - "README.md" + paths: +# The workflow self. + - ".github/workflows/test_pyproject_ci_multi-tests_by_poetry.yaml" +# The shell script only be used by this workflow. + - "scripts/ci/check_getting_output.sh" +# The sample Python code. + - ".coveragerc" + - "pyproject.toml" + - "pytest.ini" + - "sonar-project.properties" + - "test_gh_workflow/**" + - "test/**" +# The shell scripts or actions this workflow would use. + - ".github/workflows/rw_get_tests.yaml" + - ".github/workflows/rw_poetry_run_test.yaml" + - ".github/workflows/rw_organize_test_cov_reports.yaml" + - "scripts/ci/combine_coverage_reports.sh" + - ".github/workflows/rw_upload_test_cov_report.yaml" + - "scripts/ci/check-input-params.sh" + - ".github/workflows/rw_sonarqube_scan.yaml" + - ".github/workflows/rw_pre-building_test.yaml" + - ".github/workflows/rw_build_git-tag_and_create_github-release.yaml" + - "scripts/ci/build_git-tag_or_create_github-release.sh" + - "scripts/ci/deployment_new_version_workflow.sh" pull_request: branches: @@ -21,11 +40,30 @@ on: - "release-**" - "release/**" - "master" - paths-ignore: - - ".gitcommitrules" - - ".gitignore" - - "LICENSE" - - "README.md" + paths: +# The workflow self. + - ".github/workflows/test_pyproject_ci_multi-tests_by_poetry.yaml" +# The shell script only be used by this workflow. + - "scripts/ci/check_getting_output.sh" +# The sample Python code. + - ".coveragerc" + - "pyproject.toml" + - "pytest.ini" + - "sonar-project.properties" + - "test_gh_workflow/**" + - "test/**" +# The shell scripts or actions this workflow would use. + - ".github/workflows/rw_get_tests.yaml" + - ".github/workflows/rw_poetry_run_test.yaml" + - ".github/workflows/rw_organize_test_cov_reports.yaml" + - "scripts/ci/combine_coverage_reports.sh" + - ".github/workflows/rw_upload_test_cov_report.yaml" + - "scripts/ci/check-input-params.sh" + - ".github/workflows/rw_sonarqube_scan.yaml" + - ".github/workflows/rw_pre-building_test.yaml" + - ".github/workflows/rw_build_git-tag_and_create_github-release.yaml" + - "scripts/ci/build_git-tag_or_create_github-release.sh" + - "scripts/ci/deployment_new_version_workflow.sh" jobs: prep-testbed_unit-test: diff --git a/.github/workflows/test_python_project_ci_multi-tests.yaml b/.github/workflows/test_python_project_ci_multi-tests.yaml index f5efbecc..ff59b3e8 100644 --- a/.github/workflows/test_python_project_ci_multi-tests.yaml +++ b/.github/workflows/test_python_project_ci_multi-tests.yaml @@ -8,12 +8,31 @@ on: - "release-**" - "release/**" - "master" - paths-ignore: - - "pyproject.toml" - - ".gitcommitrules" - - ".gitignore" - - "LICENSE" - - "README.md" + paths: +# The workflow self. + - ".github/workflows/test_python_project_ci_multi-tests.yaml" +# The shell script only be used by this workflow. + - "scripts/ci/check_getting_output.sh" +# The sample Python code. + - ".coveragerc" + - "pytest.ini" + - "sonar-project.properties" + - "requirements/**" + - "setup.py" + - "test_gh_workflow/**" + - "test/**" +# The shell scripts or actions this workflow would use. + - ".github/workflows/rw_get_tests.yaml" + - ".github/workflows/rw_poetry_run_test.yaml" + - ".github/workflows/rw_organize_test_cov_reports.yaml" + - "scripts/ci/combine_coverage_reports.sh" + - ".github/workflows/rw_upload_test_cov_report.yaml" + - "scripts/ci/check-input-params.sh" + - ".github/workflows/rw_sonarqube_scan.yaml" + - ".github/workflows/rw_pre-building_test.yaml" + - ".github/workflows/rw_build_git-tag_and_create_github-release.yaml" + - "scripts/ci/build_git-tag_or_create_github-release.sh" + - "scripts/ci/deployment_new_version_workflow.sh" pull_request: branches: @@ -22,12 +41,31 @@ on: - "release-**" - "release/**" - "master" - paths-ignore: - - "pyproject.toml" - - ".gitcommitrules" - - ".gitignore" - - "LICENSE" - - "README.md" + paths: +# The workflow self. + - ".github/workflows/test_python_project_ci_multi-tests.yaml" +# The shell script only be used by this workflow. + - "scripts/ci/check_getting_output.sh" +# The sample Python code. + - ".coveragerc" + - "pytest.ini" + - "sonar-project.properties" + - "requirements/**" + - "setup.py" + - "test_gh_workflow/**" + - "test/**" +# The shell scripts or actions this workflow would use. + - ".github/workflows/rw_get_tests.yaml" + - ".github/workflows/rw_poetry_run_test.yaml" + - ".github/workflows/rw_organize_test_cov_reports.yaml" + - "scripts/ci/combine_coverage_reports.sh" + - ".github/workflows/rw_upload_test_cov_report.yaml" + - "scripts/ci/check-input-params.sh" + - ".github/workflows/rw_sonarqube_scan.yaml" + - ".github/workflows/rw_pre-building_test.yaml" + - ".github/workflows/rw_build_git-tag_and_create_github-release.yaml" + - "scripts/ci/build_git-tag_or_create_github-release.sh" + - "scripts/ci/deployment_new_version_workflow.sh" jobs: prep-testbed_unit-test: diff --git a/.github/workflows/test_python_project_ci_one-test.yaml b/.github/workflows/test_python_project_ci_one-test.yaml index 0b4907b7..e15fa4c9 100644 --- a/.github/workflows/test_python_project_ci_one-test.yaml +++ b/.github/workflows/test_python_project_ci_one-test.yaml @@ -8,12 +8,33 @@ on: - "release-**" - "release/**" - "master" - paths-ignore: + paths: +# The workflow self. + - ".github/workflows/test_python_project_ci_one-test.yaml" +# The shell script only be used by this workflow. + - "scripts/ci/check_getting_output.sh" +# The sample Python code. + - ".coveragerc" - "pyproject.toml" - - ".gitcommitrules" - - ".gitignore" - - "LICENSE" - - "README.md" + - "pytest.ini" + - "sonar-project.properties" + - "requirements/**" + - "setup.py" + - "test_gh_workflow/**" + - "test/**" +# The shell scripts or actions this workflow would use. + - ".github/workflows/rw_get_tests.yaml" + - ".github/workflows/rw_poetry_run_test.yaml" + - ".github/workflows/rw_organize_test_cov_reports.yaml" + - "scripts/ci/combine_coverage_reports.sh" + - ".github/workflows/rw_upload_test_cov_report.yaml" + - "scripts/ci/check-input-params.sh" + - ".github/workflows/rw_sonarqube_scan.yaml" + - ".github/workflows/rw_pre-building_test.yaml" + - ".github/workflows/rw_build_git-tag_and_create_github-release.yaml" + - "scripts/ci/build_git-tag_or_create_github-release.sh" + - "scripts/ci/deployment_new_version_workflow.sh" + pull_request: branches: - "develop" @@ -21,12 +42,32 @@ on: - "release-**" - "release/**" - "master" - paths-ignore: + paths: +# The workflow self. + - ".github/workflows/test_python_project_ci_one-test.yaml" +# The shell script only be used by this workflow. + - "scripts/ci/check_getting_output.sh" +# The sample Python code. + - ".coveragerc" - "pyproject.toml" - - ".gitcommitrules" - - ".gitignore" - - "LICENSE" - - "README.md" + - "pytest.ini" + - "sonar-project.properties" + - "requirements/**" + - "setup.py" + - "test_gh_workflow/**" + - "test/**" +# The shell scripts or actions this workflow would use. + - ".github/workflows/rw_get_tests.yaml" + - ".github/workflows/rw_poetry_run_test.yaml" + - ".github/workflows/rw_organize_test_cov_reports.yaml" + - "scripts/ci/combine_coverage_reports.sh" + - ".github/workflows/rw_upload_test_cov_report.yaml" + - "scripts/ci/check-input-params.sh" + - ".github/workflows/rw_sonarqube_scan.yaml" + - ".github/workflows/rw_pre-building_test.yaml" + - ".github/workflows/rw_build_git-tag_and_create_github-release.yaml" + - "scripts/ci/build_git-tag_or_create_github-release.sh" + - "scripts/ci/deployment_new_version_workflow.sh" jobs: prep-testbed_unit-test: From 1a5fb0203520bee004a5112859575bda3dd8b9af Mon Sep 17 00:00:00 2001 From: Chisanan232 Date: Mon, 30 Oct 2023 09:13:49 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20=20Modify=20the=20list?= =?UTF-8?q?ening=20condition=20of=20git=20event=20about=20paths=20at=20tes?= =?UTF-8?q?ting=20CI=20config=20to=20be=20correct.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../test_python_project_ci_one-test.yaml | 25 ++++++++++++++----- 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test_python_project_ci_one-test.yaml b/.github/workflows/test_python_project_ci_one-test.yaml index 33924198..a88e3d0b 100644 --- a/.github/workflows/test_python_project_ci_one-test.yaml +++ b/.github/workflows/test_python_project_ci_one-test.yaml @@ -15,11 +15,25 @@ on: - "scripts/ci/check_getting_output.sh" # The sample Python code. - ".coveragerc" - - "pyproject.toml" - - ".gitcommitrules" - - ".gitignore" - - "LICENSE" - - "README.md" + - "pytest.ini" + - "sonar-project.properties" + - "requirements/**" + - "setup.py" + - "test_gh_workflow/**" + - "test/**" +# The shell scripts or actions this workflow would use. + - ".github/workflows/rw_get_tests.yaml" + - ".github/workflows/rw_poetry_run_test.yaml" + - ".github/workflows/rw_organize_test_cov_reports.yaml" + - "scripts/ci/combine_coverage_reports.sh" + - ".github/workflows/rw_upload_test_cov_report.yaml" + - "scripts/ci/check-input-params.sh" + - ".github/workflows/rw_sonarqube_scan.yaml" + - ".github/workflows/rw_pre-building_test.yaml" + - ".github/workflows/rw_build_git-tag_and_create_github-release.yaml" + - "scripts/ci/build_git-tag_or_create_github-release.sh" + - "scripts/ci/deployment_new_version_workflow.sh" + pull_request: branches: - "develop" @@ -34,7 +48,6 @@ on: - "scripts/ci/check_getting_output.sh" # The sample Python code. - ".coveragerc" - - "pyproject.toml" - "pytest.ini" - "sonar-project.properties" - "requirements/**"