From 556932fdd55d8e9b8b8d0256cc9e56dff2d795cf Mon Sep 17 00:00:00 2001 From: Chisanan232 Date: Sun, 29 Oct 2023 21:19:36 +0800 Subject: [PATCH 01/13] =?UTF-8?q?=F0=9F=A7=AC=20Rename=20the=20jobs.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci-cd.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-cd.yaml b/.github/workflows/ci-cd.yaml index 37b92682..c517235a 100644 --- a/.github/workflows/ci-cd.yaml +++ b/.github/workflows/ci-cd.yaml @@ -23,7 +23,7 @@ on: - "README.md" jobs: - test_build_git-tag_and_create_github-release: + build_git-tag_and_create_github-release: # name: Build git tag and GitHub release if it needs if: ${{ github.ref_name == 'master' && github.event_name == 'push' }} uses: ./.github/workflows/build_git-tag_and_create_github-release.yaml @@ -34,7 +34,7 @@ jobs: debug_mode: false - test_deploy_as_new_branch: + deploy_as_new_branch: # name: Create new git branch by the tagged commit needs: test_build_git-tag_and_create_github-release if: ${{ github.ref_name == 'master' && From ffca8a6c4ca058343153f6f5d48aa8c91313e625 Mon Sep 17 00:00:00 2001 From: Chisanan232 Date: Sun, 29 Oct 2023 21:32:44 +0800 Subject: [PATCH 02/13] =?UTF-8?q?=F0=9F=A7=AC=20Rename=20reusable=20workfl?= =?UTF-8?q?ow.=20Align=20the=20naming=20about=20it=20must=20to=20start=20w?= =?UTF-8?q?ith=20*rw=5F*=20if=20it's=20reusable=20workflow.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci-cd.yaml | 2 +- ...ase.yaml => rw_build_git-tag_and_create_github-release.yaml} | 0 .github/workflows/test_gh_reusable_workflow.yaml | 2 +- .github/workflows/test_pyproject_ci_multi-tests_by_poetry.yaml | 2 +- .github/workflows/test_python_project_ci_multi-tests.yaml | 2 +- .github/workflows/test_python_project_ci_one-test.yaml | 2 +- 6 files changed, 5 insertions(+), 5 deletions(-) rename .github/workflows/{build_git-tag_and_create_github-release.yaml => rw_build_git-tag_and_create_github-release.yaml} (100%) diff --git a/.github/workflows/ci-cd.yaml b/.github/workflows/ci-cd.yaml index c517235a..867916ac 100644 --- a/.github/workflows/ci-cd.yaml +++ b/.github/workflows/ci-cd.yaml @@ -26,7 +26,7 @@ jobs: build_git-tag_and_create_github-release: # name: Build git tag and GitHub release if it needs if: ${{ github.ref_name == 'master' && github.event_name == 'push' }} - uses: ./.github/workflows/build_git-tag_and_create_github-release.yaml + uses: ./.github/workflows/rw_build_git-tag_and_create_github-release.yaml secrets: github_auth_token: ${{ secrets.GITHUB_TOKEN }} with: diff --git a/.github/workflows/build_git-tag_and_create_github-release.yaml b/.github/workflows/rw_build_git-tag_and_create_github-release.yaml similarity index 100% rename from .github/workflows/build_git-tag_and_create_github-release.yaml rename to .github/workflows/rw_build_git-tag_and_create_github-release.yaml diff --git a/.github/workflows/test_gh_reusable_workflow.yaml b/.github/workflows/test_gh_reusable_workflow.yaml index 6cf75b50..aad9147e 100644 --- a/.github/workflows/test_gh_reusable_workflow.yaml +++ b/.github/workflows/test_gh_reusable_workflow.yaml @@ -30,7 +30,7 @@ on: jobs: test_build_git-tag_and_create_github-release: # name: Build git tag and GitHub release if it needs - uses: ./.github/workflows/build_git-tag_and_create_github-release.yaml + uses: ./.github/workflows/rw_build_git-tag_and_create_github-release.yaml secrets: github_auth_token: ${{ secrets.GITHUB_TOKEN }} with: 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 ff955710..f8981cf3 100644 --- a/.github/workflows/test_pyproject_ci_multi-tests_by_poetry.yaml +++ b/.github/workflows/test_pyproject_ci_multi-tests_by_poetry.yaml @@ -138,7 +138,7 @@ jobs: build_git-tag_and_create_github-release: # name: Build git tag and GitHub release if it needs needs: pre-building_test - uses: ./.github/workflows/build_git-tag_and_create_github-release.yaml + uses: ./.github/workflows/rw_build_git-tag_and_create_github-release.yaml with: project_type: python-package project_name: test_gh_workflow diff --git a/.github/workflows/test_python_project_ci_multi-tests.yaml b/.github/workflows/test_python_project_ci_multi-tests.yaml index f79cec95..c5e8637d 100644 --- a/.github/workflows/test_python_project_ci_multi-tests.yaml +++ b/.github/workflows/test_python_project_ci_multi-tests.yaml @@ -130,7 +130,7 @@ jobs: build_git-tag_and_create_github-release: # name: Build git tag and GitHub release if it needs needs: pre-building_test - uses: ./.github/workflows/build_git-tag_and_create_github-release.yaml + uses: ./.github/workflows/rw_build_git-tag_and_create_github-release.yaml with: project_type: python-package project_name: test_gh_workflow diff --git a/.github/workflows/test_python_project_ci_one-test.yaml b/.github/workflows/test_python_project_ci_one-test.yaml index 625f58fb..5240df74 100644 --- a/.github/workflows/test_python_project_ci_one-test.yaml +++ b/.github/workflows/test_python_project_ci_one-test.yaml @@ -114,7 +114,7 @@ jobs: build_git-tag_and_create_github-release: # name: Build git tag and GitHub release if it needs needs: pre-building_test - uses: ./.github/workflows/build_git-tag_and_create_github-release.yaml + uses: ./.github/workflows/rw_build_git-tag_and_create_github-release.yaml with: project_type: python-package project_name: test_gh_workflow From 3851b36f701716025b9bfa99f7473711fff68610 Mon Sep 17 00:00:00 2001 From: Chisanan232 Date: Sun, 29 Oct 2023 21:34:16 +0800 Subject: [PATCH 03/13] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20=20Modify=20the=20jo?= =?UTF-8?q?b=20name=20which=20it=20needs=20to=20wait.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci-cd.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-cd.yaml b/.github/workflows/ci-cd.yaml index 867916ac..3299d141 100644 --- a/.github/workflows/ci-cd.yaml +++ b/.github/workflows/ci-cd.yaml @@ -36,7 +36,7 @@ jobs: deploy_as_new_branch: # name: Create new git branch by the tagged commit - needs: test_build_git-tag_and_create_github-release + needs: build_git-tag_and_create_github-release if: ${{ github.ref_name == 'master' && github.event_name == 'push' && needs.test_build_git-tag_and_create_github-release.outputs.github-action_reusable_workflow_release_version != 'Pre-Release' }} From e02757b44b2b80b2a4c5e9d5b05ba84ef60c380c Mon Sep 17 00:00:00 2001 From: Chisanan232 Date: Sun, 29 Oct 2023 21:40:32 +0800 Subject: [PATCH 04/13] =?UTF-8?q?=F0=9F=A7=AC=20Rename=20reusable=20workfl?= =?UTF-8?q?ow=20for=20running=20test.=20Align=20the=20naming=20about=20it?= =?UTF-8?q?=20must=20to=20start=20with=20*rw=5F*=20if=20it's=20reusable=20?= =?UTF-8?q?workflow.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{run_test_items_via_pytest.yaml => rw_run_test.yaml} | 0 .github/workflows/test_python_project_ci_multi-tests.yaml | 4 ++-- .github/workflows/test_python_project_ci_one-test.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename .github/workflows/{run_test_items_via_pytest.yaml => rw_run_test.yaml} (100%) diff --git a/.github/workflows/run_test_items_via_pytest.yaml b/.github/workflows/rw_run_test.yaml similarity index 100% rename from .github/workflows/run_test_items_via_pytest.yaml rename to .github/workflows/rw_run_test.yaml diff --git a/.github/workflows/test_python_project_ci_multi-tests.yaml b/.github/workflows/test_python_project_ci_multi-tests.yaml index c5e8637d..cabb4420 100644 --- a/.github/workflows/test_python_project_ci_multi-tests.yaml +++ b/.github/workflows/test_python_project_ci_multi-tests.yaml @@ -49,7 +49,7 @@ jobs: run_unit-test: # name: Run all unit test items needs: prep-testbed_unit-test - uses: ./.github/workflows/run_test_items_via_pytest.yaml + uses: ./.github/workflows/rw_run_test.yaml with: test_type: unit-test all_test_items_paths: ${{needs.prep-testbed_unit-test.outputs.all_test_items}} @@ -59,7 +59,7 @@ jobs: run_integration-test: # name: Run all integration test items. This testing would test the code with other resource or system to ensure the features work finely. needs: prep-testbed_integration-test - uses: ./.github/workflows/run_test_items_via_pytest.yaml + uses: ./.github/workflows/rw_run_test.yaml with: test_type: integration-test all_test_items_paths: ${{needs.prep-testbed_integration-test.outputs.all_test_items}} diff --git a/.github/workflows/test_python_project_ci_one-test.yaml b/.github/workflows/test_python_project_ci_one-test.yaml index 5240df74..4e0b5403 100644 --- a/.github/workflows/test_python_project_ci_one-test.yaml +++ b/.github/workflows/test_python_project_ci_one-test.yaml @@ -39,7 +39,7 @@ jobs: run_unit-test: # name: Run all unit test items needs: prep-testbed_unit-test - uses: ./.github/workflows/run_test_items_via_pytest.yaml + uses: ./.github/workflows/rw_run_test.yaml with: test_type: unit-test all_test_items_paths: ${{needs.prep-testbed_unit-test.outputs.all_test_items}} From fd81545666baa668ca22c0d0967f4b74b579578f Mon Sep 17 00:00:00 2001 From: Chisanan232 Date: Sun, 29 Oct 2023 21:47:25 +0800 Subject: [PATCH 05/13] =?UTF-8?q?=F0=9F=A7=AC=20Rename=20reusable=20workfl?= =?UTF-8?q?ow=20for=20getting=20all=20test.=20Align=20the=20naming=20about?= =?UTF-8?q?=20it=20must=20to=20start=20with=20*rw=5F*=20if=20it's=20reusab?= =?UTF-8?q?le=20workflow.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../workflows/{prepare_test_items.yaml => rw_get_tests.yaml} | 0 .../workflows/test_pyproject_ci_multi-tests_by_poetry.yaml | 4 ++-- .github/workflows/test_python_project_ci_multi-tests.yaml | 4 ++-- .github/workflows/test_python_project_ci_one-test.yaml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) rename .github/workflows/{prepare_test_items.yaml => rw_get_tests.yaml} (100%) diff --git a/.github/workflows/prepare_test_items.yaml b/.github/workflows/rw_get_tests.yaml similarity index 100% rename from .github/workflows/prepare_test_items.yaml rename to .github/workflows/rw_get_tests.yaml 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 f8981cf3..603306af 100644 --- a/.github/workflows/test_pyproject_ci_multi-tests_by_poetry.yaml +++ b/.github/workflows/test_pyproject_ci_multi-tests_by_poetry.yaml @@ -30,14 +30,14 @@ on: jobs: prep-testbed_unit-test: # name: Prepare all unit test items - uses: ./.github/workflows/prepare_test_items.yaml + uses: ./.github/workflows/rw_get_tests.yaml with: shell_arg: test/unit_test/ prep-testbed_integration-test: # name: Prepare all integration test items - uses: ./.github/workflows/prepare_test_items.yaml + uses: ./.github/workflows/rw_get_tests.yaml with: shell_path: scripts/ci/test/get-integration-test-paths.sh shell_arg: unix diff --git a/.github/workflows/test_python_project_ci_multi-tests.yaml b/.github/workflows/test_python_project_ci_multi-tests.yaml index cabb4420..d5057d30 100644 --- a/.github/workflows/test_python_project_ci_multi-tests.yaml +++ b/.github/workflows/test_python_project_ci_multi-tests.yaml @@ -32,14 +32,14 @@ on: jobs: prep-testbed_unit-test: # name: Prepare all unit test items - uses: ./.github/workflows/prepare_test_items.yaml + uses: ./.github/workflows/rw_get_tests.yaml with: shell_arg: test/unit_test/ prep-testbed_integration-test: # name: Prepare all integration test items - uses: ./.github/workflows/prepare_test_items.yaml + uses: ./.github/workflows/rw_get_tests.yaml with: shell_path: scripts/ci/test/get-integration-test-paths.sh shell_arg: unix diff --git a/.github/workflows/test_python_project_ci_one-test.yaml b/.github/workflows/test_python_project_ci_one-test.yaml index 4e0b5403..2a0db17c 100644 --- a/.github/workflows/test_python_project_ci_one-test.yaml +++ b/.github/workflows/test_python_project_ci_one-test.yaml @@ -31,7 +31,7 @@ on: jobs: prep-testbed_unit-test: # name: Prepare all unit test items - uses: ./.github/workflows/prepare_test_items.yaml + uses: ./.github/workflows/rw_get_tests.yaml with: shell_arg: test/unit_test/ From 93ab1328b109e53135f223ae0114a0173eb285f6 Mon Sep 17 00:00:00 2001 From: Chisanan232 Date: Sun, 29 Oct 2023 21:52:05 +0800 Subject: [PATCH 06/13] =?UTF-8?q?=F0=9F=A7=AC=20Rename=20reusable=20workfl?= =?UTF-8?q?ow=20for=20running=20test=20by=20Poetry.=20Align=20the=20naming?= =?UTF-8?q?=20about=20it=20must=20to=20start=20with=20*rw=5F*=20if=20it's?= =?UTF-8?q?=20reusable=20workflow.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...oetry_run_test_via_pytest.yaml => rw_poetry_run_test.yaml} | 0 .../workflows/test_pyproject_ci_multi-tests_by_poetry.yaml | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) rename .github/workflows/{poetry_run_test_via_pytest.yaml => rw_poetry_run_test.yaml} (100%) diff --git a/.github/workflows/poetry_run_test_via_pytest.yaml b/.github/workflows/rw_poetry_run_test.yaml similarity index 100% rename from .github/workflows/poetry_run_test_via_pytest.yaml rename to .github/workflows/rw_poetry_run_test.yaml 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 603306af..ddc2c125 100644 --- a/.github/workflows/test_pyproject_ci_multi-tests_by_poetry.yaml +++ b/.github/workflows/test_pyproject_ci_multi-tests_by_poetry.yaml @@ -47,7 +47,7 @@ jobs: run_unit-test: # name: Run all unit test items needs: prep-testbed_unit-test - uses: ./.github/workflows/poetry_run_test_via_pytest.yaml + uses: ./.github/workflows/rw_poetry_run_test.yaml with: test_type: unit-test all_test_items_paths: ${{needs.prep-testbed_unit-test.outputs.all_test_items}} @@ -56,7 +56,7 @@ jobs: run_integration-test: # name: Run all integration test items. This testing would test the code with other resource or system to ensure the features work finely. needs: prep-testbed_integration-test - uses: ./.github/workflows/poetry_run_test_via_pytest.yaml + uses: ./.github/workflows/rw_poetry_run_test.yaml with: test_type: integration-test all_test_items_paths: ${{needs.prep-testbed_integration-test.outputs.all_test_items}} From 4d4653960846c67aa30edc3f016792c546f77fac Mon Sep 17 00:00:00 2001 From: Chisanan232 Date: Sun, 29 Oct 2023 21:59:15 +0800 Subject: [PATCH 07/13] =?UTF-8?q?=F0=9F=A7=AC=20Rename=20reusable=20workfl?= =?UTF-8?q?ow=20for=20organizing=20test=20coverage=20reports.=20Align=20th?= =?UTF-8?q?e=20naming=20about=20it=20must=20to=20start=20with=20*rw=5F*=20?= =?UTF-8?q?if=20it's=20reusable=20workflow.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ..._test_cov_reports.yaml => rw_organize_test_cov_reports.yaml} | 0 .github/workflows/test_pyproject_ci_multi-tests_by_poetry.yaml | 2 +- .github/workflows/test_python_project_ci_multi-tests.yaml | 2 +- .github/workflows/test_python_project_ci_one-test.yaml | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename .github/workflows/{organize_and_generate_test_cov_reports.yaml => rw_organize_test_cov_reports.yaml} (100%) diff --git a/.github/workflows/organize_and_generate_test_cov_reports.yaml b/.github/workflows/rw_organize_test_cov_reports.yaml similarity index 100% rename from .github/workflows/organize_and_generate_test_cov_reports.yaml rename to .github/workflows/rw_organize_test_cov_reports.yaml 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 ddc2c125..7c67dbed 100644 --- a/.github/workflows/test_pyproject_ci_multi-tests_by_poetry.yaml +++ b/.github/workflows/test_pyproject_ci_multi-tests_by_poetry.yaml @@ -70,7 +70,7 @@ jobs: all-test_codecov: # name: Organize and generate the testing report and upload it to Codecov needs: [run_unit-test, run_integration-test] - uses: ./.github/workflows/organize_and_generate_test_cov_reports.yaml + uses: ./.github/workflows/rw_organize_test_cov_reports.yaml with: test_type: all-test diff --git a/.github/workflows/test_python_project_ci_multi-tests.yaml b/.github/workflows/test_python_project_ci_multi-tests.yaml index d5057d30..fa0370c5 100644 --- a/.github/workflows/test_python_project_ci_multi-tests.yaml +++ b/.github/workflows/test_python_project_ci_multi-tests.yaml @@ -74,7 +74,7 @@ jobs: all-test_codecov: # name: Organize and generate the testing report and upload it to Codecov needs: [run_unit-test, run_integration-test] - uses: ./.github/workflows/organize_and_generate_test_cov_reports.yaml + uses: ./.github/workflows/rw_organize_test_cov_reports.yaml with: test_type: all-test diff --git a/.github/workflows/test_python_project_ci_one-test.yaml b/.github/workflows/test_python_project_ci_one-test.yaml index 2a0db17c..a2149539 100644 --- a/.github/workflows/test_python_project_ci_one-test.yaml +++ b/.github/workflows/test_python_project_ci_one-test.yaml @@ -49,7 +49,7 @@ jobs: unit-test_codecov: # name: Organize and generate the testing report and upload it to Codecov needs: run_unit-test - uses: ./.github/workflows/organize_and_generate_test_cov_reports.yaml + uses: ./.github/workflows/rw_organize_test_cov_reports.yaml with: test_type: unit-test From 1625599fb6e30b6e8dde7ae38900ee06a067adbe Mon Sep 17 00:00:00 2001 From: Chisanan232 Date: Sun, 29 Oct 2023 22:03:35 +0800 Subject: [PATCH 08/13] =?UTF-8?q?=F0=9F=A7=AC=20Rename=20reusable=20workfl?= =?UTF-8?q?ow=20for=20uploading=20test=20coverage=20reports.=20Align=20the?= =?UTF-8?q?=20naming=20about=20it=20must=20to=20start=20with=20*rw=5F*=20i?= =?UTF-8?q?f=20it's=20reusable=20workflow.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ..._test_cov_report.yaml => rw_upload_test_cov_report.yaml} | 0 .../workflows/test_pyproject_ci_multi-tests_by_poetry.yaml | 6 +++--- .github/workflows/test_python_project_ci_multi-tests.yaml | 6 +++--- .github/workflows/test_python_project_ci_one-test.yaml | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) rename .github/workflows/{upload_test_cov_report.yaml => rw_upload_test_cov_report.yaml} (100%) diff --git a/.github/workflows/upload_test_cov_report.yaml b/.github/workflows/rw_upload_test_cov_report.yaml similarity index 100% rename from .github/workflows/upload_test_cov_report.yaml rename to .github/workflows/rw_upload_test_cov_report.yaml 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 7c67dbed..802ea01e 100644 --- a/.github/workflows/test_pyproject_ci_multi-tests_by_poetry.yaml +++ b/.github/workflows/test_pyproject_ci_multi-tests_by_poetry.yaml @@ -79,7 +79,7 @@ jobs: # name: Organize and generate the testing report and upload it to Codecov # if: github.ref_name == 'release' || github.ref_name == 'master' needs: [all-test_codecov] - uses: ./.github/workflows/upload_test_cov_report.yaml + uses: ./.github/workflows/rw_upload_test_cov_report.yaml secrets: codecov_token: ${{ secrets.CODECOV_TOKEN }} with: @@ -93,7 +93,7 @@ jobs: # name: Organize and generate the testing report and upload it to Coveralls # if: github.ref_name == 'release' || github.ref_name == 'master' needs: [all-test_codecov] - uses: ./.github/workflows/upload_test_cov_report.yaml + uses: ./.github/workflows/rw_upload_test_cov_report.yaml secrets: coveralls_token: ${{ secrets.COVERALLS_TOKEN }} with: @@ -104,7 +104,7 @@ jobs: codacy_finish: # name: Upload test report to Codacy to analyse and record code quality needs: [all-test_codecov] - uses: ./.github/workflows/upload_test_cov_report.yaml + uses: ./.github/workflows/rw_upload_test_cov_report.yaml secrets: codacy_token: ${{ secrets.CODACY_PROJECT_TOKEN }} with: diff --git a/.github/workflows/test_python_project_ci_multi-tests.yaml b/.github/workflows/test_python_project_ci_multi-tests.yaml index fa0370c5..807934db 100644 --- a/.github/workflows/test_python_project_ci_multi-tests.yaml +++ b/.github/workflows/test_python_project_ci_multi-tests.yaml @@ -83,7 +83,7 @@ jobs: # name: Organize and generate the testing report and upload it to Codecov # if: github.ref_name == 'release' || github.ref_name == 'master' needs: [all-test_codecov] - uses: ./.github/workflows/upload_test_cov_report.yaml + uses: ./.github/workflows/rw_upload_test_cov_report.yaml secrets: codecov_token: ${{ secrets.CODECOV_TOKEN }} with: @@ -97,7 +97,7 @@ jobs: # name: Organize and generate the testing report and upload it to Coveralls # if: github.ref_name == 'release' || github.ref_name == 'master' needs: [all-test_codecov] - uses: ./.github/workflows/upload_test_cov_report.yaml + uses: ./.github/workflows/rw_upload_test_cov_report.yaml secrets: coveralls_token: ${{ secrets.COVERALLS_TOKEN }} with: @@ -108,7 +108,7 @@ jobs: codacy_finish: # name: Upload test report to Codacy to analyse and record code quality needs: [all-test_codecov] - uses: ./.github/workflows/upload_test_cov_report.yaml + uses: ./.github/workflows/rw_upload_test_cov_report.yaml secrets: codacy_token: ${{ secrets.CODACY_PROJECT_TOKEN }} with: diff --git a/.github/workflows/test_python_project_ci_one-test.yaml b/.github/workflows/test_python_project_ci_one-test.yaml index a2149539..d6efa9bc 100644 --- a/.github/workflows/test_python_project_ci_one-test.yaml +++ b/.github/workflows/test_python_project_ci_one-test.yaml @@ -58,7 +58,7 @@ jobs: # name: Organize and generate the testing report and upload it to Codecov # if: github.ref_name == 'release' || github.ref_name == 'master' needs: [unit-test_codecov] - uses: ./.github/workflows/upload_test_cov_report.yaml + uses: ./.github/workflows/rw_upload_test_cov_report.yaml secrets: codecov_token: ${{ secrets.CODECOV_TOKEN }} with: @@ -72,7 +72,7 @@ jobs: # name: Organize and generate the testing report and upload it to Coveralls # if: github.ref_name == 'release' || github.ref_name == 'master' needs: [unit-test_codecov] - uses: ./.github/workflows/upload_test_cov_report.yaml + uses: ./.github/workflows/rw_upload_test_cov_report.yaml secrets: coveralls_token: ${{ secrets.COVERALLS_TOKEN }} with: @@ -83,7 +83,7 @@ jobs: codacy_finish: # name: Upload test report to Codacy to analyse and record code quality needs: [unit-test_codecov] - uses: ./.github/workflows/upload_test_cov_report.yaml + uses: ./.github/workflows/rw_upload_test_cov_report.yaml secrets: codacy_token: ${{ secrets.CODACY_PROJECT_TOKEN }} with: From e534cc5d621123e8e090ad28e2232604c4529afa Mon Sep 17 00:00:00 2001 From: Chisanan232 Date: Sun, 29 Oct 2023 22:10:53 +0800 Subject: [PATCH 09/13] =?UTF-8?q?=F0=9F=A7=AC=20Rename=20reusable=20workfl?= =?UTF-8?q?ow=20for=20triggering=20SonarQube=20scan.=20Align=20the=20namin?= =?UTF-8?q?g=20about=20it=20must=20to=20start=20with=20*rw=5F*=20if=20it's?= =?UTF-8?q?=20reusable=20workflow.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{sonarqube_scan.yaml => rw_sonarqube_scan.yaml} | 0 .../test_pyproject_ci_multi-tests_by_poetry.yaml | 2 +- .../test_python_project_ci_multi-tests.yaml | 12 +++++++++++- 3 files changed, 12 insertions(+), 2 deletions(-) rename .github/workflows/{sonarqube_scan.yaml => rw_sonarqube_scan.yaml} (100%) diff --git a/.github/workflows/sonarqube_scan.yaml b/.github/workflows/rw_sonarqube_scan.yaml similarity index 100% rename from .github/workflows/sonarqube_scan.yaml rename to .github/workflows/rw_sonarqube_scan.yaml 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 802ea01e..4e65bde2 100644 --- a/.github/workflows/test_pyproject_ci_multi-tests_by_poetry.yaml +++ b/.github/workflows/test_pyproject_ci_multi-tests_by_poetry.yaml @@ -115,7 +115,7 @@ jobs: sonarqube_finish: # name: Trigger SoarQube service to scan and analyse project needs: [all-test_codecov] - uses: ./.github/workflows/sonarqube_scan.yaml + uses: ./.github/workflows/rw_sonarqube_scan.yaml secrets: sonar_token: ${{ secrets.SONAR_TOKEN }} # with: diff --git a/.github/workflows/test_python_project_ci_multi-tests.yaml b/.github/workflows/test_python_project_ci_multi-tests.yaml index 807934db..e1d5db24 100644 --- a/.github/workflows/test_python_project_ci_multi-tests.yaml +++ b/.github/workflows/test_python_project_ci_multi-tests.yaml @@ -116,10 +116,20 @@ jobs: upload-to-codacy: true + sonarqube_finish: +# name: Trigger SoarQube service to scan and analyse project + needs: [all-test_codecov] + uses: ./.github/workflows/rw_sonarqube_scan.yaml + secrets: + sonar_token: ${{ secrets.SONAR_TOKEN }} +# with: +# download_path: ${{ inputs.download_path }} + + pre-building_test: # name: Check about it could work finely by installing the Python package with setup.py file if: github.event_name == 'push' && (github.ref_name == 'release' || github.ref_name == 'master') - needs: [codecov_finish, coveralls_finish, codacy_finish] + needs: [codecov_finish, coveralls_finish, codacy_finish, sonarqube_finish] uses: ./.github/workflows/pre-building_test.yaml with: python_package_name: Test-GitHub-Action-workflow From 340cd76d42903a6b9f9e0b24ef7d521bfab7d258 Mon Sep 17 00:00:00 2001 From: Chisanan232 Date: Sun, 29 Oct 2023 22:18:08 +0800 Subject: [PATCH 10/13] =?UTF-8?q?=F0=9F=A7=AC=20Rename=20reusable=20workfl?= =?UTF-8?q?ow=20for=20triggering=20SonarQube=20scan.=20Align=20the=20namin?= =?UTF-8?q?g=20about=20it=20must=20to=20start=20with=20*rw=5F*=20if=20it's?= =?UTF-8?q?=20reusable=20workflow.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test_python_project_ci_one-test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test_python_project_ci_one-test.yaml b/.github/workflows/test_python_project_ci_one-test.yaml index d6efa9bc..5955b161 100644 --- a/.github/workflows/test_python_project_ci_one-test.yaml +++ b/.github/workflows/test_python_project_ci_one-test.yaml @@ -94,7 +94,7 @@ jobs: sonarqube_finish: # name: Trigger SoarQube service to scan and analyse project needs: [unit-test_codecov] - uses: ./.github/workflows/sonarqube_scan.yaml + uses: ./.github/workflows/rw_sonarqube_scan.yaml secrets: sonar_token: ${{ secrets.SONAR_TOKEN }} # with: From 589aff9bd3228fd1e160f1b35582047a723fa888 Mon Sep 17 00:00:00 2001 From: Chisanan232 Date: Sun, 29 Oct 2023 22:20:08 +0800 Subject: [PATCH 11/13] =?UTF-8?q?=F0=9F=A7=AC=20Rename=20reusable=20workfl?= =?UTF-8?q?ow=20for=20running=20pre-building=20test.=20Align=20the=20namin?= =?UTF-8?q?g=20about=20it=20must=20to=20start=20with=20*rw=5F*=20if=20it's?= =?UTF-8?q?=20reusable=20workflow.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{pre-building_test.yaml => rw_pre-building_test.yaml} | 0 .github/workflows/test_pyproject_ci_multi-tests_by_poetry.yaml | 2 +- .github/workflows/test_python_project_ci_multi-tests.yaml | 2 +- .github/workflows/test_python_project_ci_one-test.yaml | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename .github/workflows/{pre-building_test.yaml => rw_pre-building_test.yaml} (100%) diff --git a/.github/workflows/pre-building_test.yaml b/.github/workflows/rw_pre-building_test.yaml similarity index 100% rename from .github/workflows/pre-building_test.yaml rename to .github/workflows/rw_pre-building_test.yaml 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 4e65bde2..ca973112 100644 --- a/.github/workflows/test_pyproject_ci_multi-tests_by_poetry.yaml +++ b/.github/workflows/test_pyproject_ci_multi-tests_by_poetry.yaml @@ -127,7 +127,7 @@ jobs: # if: github.event_name == 'push' && (github.ref_name == 'release' || github.ref_name == 'master') if: github.event_name == 'push' needs: [codecov_finish, coveralls_finish, codacy_finish] - uses: ./.github/workflows/pre-building_test.yaml + uses: ./.github/workflows/rw_pre-building_test.yaml with: build-type: poetry python_package_name: Test-GitHub-Action-workflow diff --git a/.github/workflows/test_python_project_ci_multi-tests.yaml b/.github/workflows/test_python_project_ci_multi-tests.yaml index e1d5db24..f5efbecc 100644 --- a/.github/workflows/test_python_project_ci_multi-tests.yaml +++ b/.github/workflows/test_python_project_ci_multi-tests.yaml @@ -130,7 +130,7 @@ jobs: # name: Check about it could work finely by installing the Python package with setup.py file if: github.event_name == 'push' && (github.ref_name == 'release' || github.ref_name == 'master') needs: [codecov_finish, coveralls_finish, codacy_finish, sonarqube_finish] - uses: ./.github/workflows/pre-building_test.yaml + uses: ./.github/workflows/rw_pre-building_test.yaml with: python_package_name: Test-GitHub-Action-workflow test_shell_in_python: from test_gh_workflow import sample diff --git a/.github/workflows/test_python_project_ci_one-test.yaml b/.github/workflows/test_python_project_ci_one-test.yaml index 5955b161..e9677f73 100644 --- a/.github/workflows/test_python_project_ci_one-test.yaml +++ b/.github/workflows/test_python_project_ci_one-test.yaml @@ -104,7 +104,7 @@ jobs: pre-building_test: # name: Check about it could work finely by installing the Python package with setup.py file needs: [codecov_finish, coveralls_finish, codacy_finish] - uses: ./.github/workflows/pre-building_test.yaml + uses: ./.github/workflows/rw_pre-building_test.yaml with: python_package_name: Test-GitHub-Action-workflow test_shell_in_python: from test_gh_workflow import sample From ba29ae4ffa9b1d4fe4134d8dbb273a9208d00164 Mon Sep 17 00:00:00 2001 From: Chisanan232 Date: Sun, 29 Oct 2023 22:26:47 +0800 Subject: [PATCH 12/13] =?UTF-8?q?=F0=9F=A7=AC=20Rename=20reusable=20workfl?= =?UTF-8?q?ow=20for=20pushing=20Python=20package=20to=20PyPI.=20Align=20th?= =?UTF-8?q?e=20naming=20about=20it=20must=20to=20start=20with=20*rw=5F*=20?= =?UTF-8?q?if=20it's=20reusable=20workflow.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/{push_pkg_to_pypi.yaml => rw_push_pypi.yaml} | 0 .github/workflows/test_python_project_ci_one-test.yaml | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename .github/workflows/{push_pkg_to_pypi.yaml => rw_push_pypi.yaml} (100%) diff --git a/.github/workflows/push_pkg_to_pypi.yaml b/.github/workflows/rw_push_pypi.yaml similarity index 100% rename from .github/workflows/push_pkg_to_pypi.yaml rename to .github/workflows/rw_push_pypi.yaml diff --git a/.github/workflows/test_python_project_ci_one-test.yaml b/.github/workflows/test_python_project_ci_one-test.yaml index e9677f73..0b4907b7 100644 --- a/.github/workflows/test_python_project_ci_one-test.yaml +++ b/.github/workflows/test_python_project_ci_one-test.yaml @@ -126,7 +126,7 @@ jobs: # name: Upload the Python package files which has been compiled to PyPi if: github.event_name == 'push' && github.ref_name == 'release' needs: build_git-tag_and_create_github-release - uses: ./.github/workflows/push_pkg_to_pypi.yaml + uses: ./.github/workflows/rw_push_pypi.yaml with: release-type: ${{ needs.build_git-tag_and_create_github-release.outputs.python_release_version }} push-to-PyPI: test From 1758cf6f73db1fa695c1954ad9854b6222920157 Mon Sep 17 00:00:00 2001 From: Chisanan232 Date: Mon, 30 Oct 2023 08:31:05 +0800 Subject: [PATCH 13/13] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20=20Update=20README?= =?UTF-8?q?=20with=20new=20naming=20of=20reusable=20workflows.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 62 +++++++++++++++++++++++++++---------------------------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/README.md b/README.md index c51caa97..76080abf 100644 --- a/README.md +++ b/README.md @@ -26,18 +26,18 @@ this project. This project has some workflow templates for reusing in GitHub Act The usage of each workflow template. -* [_prepare_test_items.yaml_](#prepare_test_itemsyaml) -* [_run_test_items_via_pytest.yaml_](#run_test_items_via_pytestyaml) -* [_organize_and_generate_test_cov_reports.yaml_](#organize_and_generate_test_cov_reportsyaml) -* [_upload_test_cov_report.yaml_](#upload_test_cov_reportyaml) -* [_pre-building_test.yaml_](#pre-building_testyaml) -* [_build_git-tag_and_create_github-release.yaml_](#build_git-tag_and_create_github-releaseyaml) -* [_push_pkg_to_pypi.yaml_](#push_pkg_to_pypiyaml) +* [_rw_get_tests.yaml_](#rw_get_testsyaml) +* [_rw_run_test.yaml_](#rw_run_testyaml) +* [_rw_organize_test_cov_reports.yaml_](#rw_organize_test_cov_reportsyaml) +* [_rw_upload_test_cov_report.yaml_](#rw_upload_test_cov_reportyaml) +* [_rw_pre-building_test.yaml_](#rw_pre-building_testyaml) +* [_rw_build_git-tag_and_create_github-release.yaml_](#rw_build_git-tag_and_create_github-releaseyaml) +* [_rw_push_pypi.yaml_](#rw_push_pypiyaml)
-### _prepare_test_items.yaml_ +### _rw_get_tests.yaml_ * Description: Prepare the test items. * Options: @@ -57,7 +57,7 @@ Before use this workflow, it should prepare a shell script for getting the testi ```yaml prepare-testing-items_unit-test: # name: Prepare all unit test items - uses: Chisanan232/GitHub-Action-Template-Python/.github/workflows/prepare_test_items.yaml@master + uses: Chisanan232/GitHub-Action-Template-Python/.github/workflows/rw_get_tests.yaml@master with: shell_path: scripts/ci/get-unit-test-paths.sh shell_arg: unix @@ -67,7 +67,7 @@ And we could get this workflow output result via keyword _all_test_items_.
-### _run_test_items_via_pytest.yaml_ +### _rw_run_test.yaml_ * Description: Run testing by specific type with all test items via PyTest and generate its testing coverage report (it would save reports by _actions/upload-artifact@v3_). * Options: @@ -97,7 +97,7 @@ No, but it would save the testing coverage reports to provide after-process to o run_unit-test: # name: Run all unit test items needs: prepare-testing-items_unit-test - uses: Chisanan232/GitHub-Action-Template-Python/.github/workflows/run_test_items_via_pytest.yaml@master + uses: Chisanan232/GitHub-Action-Template-Python/.github/workflows/rw_run_test.yaml@master with: test_type: unit-test all_test_items_paths: ${{needs.prepare-testing-items_unit-test.outputs.all_test_items}} @@ -121,21 +121,21 @@ is provided by previous workflow? That is all testing items. > **_NOTE:_** > > It also has another reusable workflow names _poetry_run_test_via_pytest.yaml_. If your Python project manages by **Poetry**, -> it recommends you to use this one replaces _run_test_items_via_pytest.yaml_. The usage and running details are mostly same -> as _run_test_items_via_pytest.yaml_. But, workflow _poetry_run_test_via_pytest.yaml_ only supports Python version 3.8 up. +> it recommends you to use this one replaces _rw_run_test.yaml_. The usage and running details are mostly same +> as _rw_run_test.yaml_. But, workflow _poetry_run_test_via_pytest.yaml_ only supports Python version 3.8 up. > -* Difference between workflows _run_test_items_via_pytest.yaml_ and _poetry_run_test_via_pytest.yaml_ +* Difference between workflows _rw_run_test.yaml_ and _poetry_run_test_via_pytest.yaml_ | Workflow | Running way | Support Python version | |-----------------------------------|---------------------------------------------------|------------------------| -| _run_test_items_via_pytest.yaml_ | Command lines like ``pip``, ``python``, etc | 3.6 - 3.11 | +| _rw_run_test.yaml_ | Command lines like ``pip``, ``python``, etc | 3.6 - 3.11 | | _poetry_run_test_via_pytest.yaml_ | Use ``poetry`` feature or run command lines in it | 3.8 - 3.11 |
-### _organize_and_generate_test_cov_reports.yaml_ +### _rw_organize_test_cov_reports.yaml_ * Description: Organize all the testing coverage reports which be generated in different runtime OS with Python version. (it would save reports by _actions/upload-artifact@v3_). * Options: @@ -159,7 +159,7 @@ No, but it would save the testing coverage reports to provide after-process to o unit-test_codecov: # name: Organize and generate the testing report and upload it to Codecov needs: run_unit-test - uses: Chisanan232/GitHub-Action-Template-Python/.github/workflows/organize_and_generate_test_cov_reports.yaml@master + uses: Chisanan232/GitHub-Action-Template-Python/.github/workflows/rw_organize_test_cov_reports.yaml@master with: test_type: unit-test ``` @@ -168,7 +168,7 @@ It would upload the organized report via _actions/upload-artifact@v3_. And it do
-### _upload_test_cov_report.yaml_ +### _rw_upload_test_cov_report.yaml_ * Description: Upload the testing coverage reports to Codecov. * Options: @@ -215,7 +215,7 @@ Nothing. codecov_finish: # name: Organize and generate the testing report and upload it to Codecov needs: [unit-test_codecov] - uses: Chisanan232/GitHub-Action-Template-Python/.github/workflows/upload_test_cov_report.yaml@master + uses: Chisanan232/GitHub-Action-Template-Python/.github/workflows/rw_upload_test_cov_report.yaml@master secrets: codecov_token: ${{ secrets.CODECOV_TOKEN }} with: @@ -237,7 +237,7 @@ Nothing. codecov_finish: # name: Organize and generate the testing report and upload it to Coveralls needs: [unit-test_codecov] - uses: Chisanan232/GitHub-Action-Template-Python/.github/workflows/upload_test_cov_report.yaml@master + uses: Chisanan232/GitHub-Action-Template-Python/.github/workflows/rw_upload_test_cov_report.yaml@master secrets: coveralls_token: ${{ secrets.COVERALLS_TOKEN }} with: @@ -257,7 +257,7 @@ Nothing. codecov_finish: # name: Organize and generate the testing report and upload it to Codacy needs: [unit-test_codecov] - uses: Chisanan232/GitHub-Action-Template-Python/.github/workflows/upload_test_cov_report.yaml@master + uses: Chisanan232/GitHub-Action-Template-Python/.github/workflows/rw_upload_test_cov_report.yaml@master secrets: codacy_token: ${{ secrets.CODACY_PROJECT_TOKEN }} with: @@ -272,7 +272,7 @@ Nothing.
-### _pre-building_test.yaml_ +### _rw_pre-building_test.yaml_ * Description: Test package by simple way after running setup.py script to install Python package * Options: @@ -292,9 +292,9 @@ No, nothing at all. * How to use it? ```yaml - pre-building_test: + rw_pre-building_test: # name: Check about it could work finely by installing the Python package with setup.py file - uses: ./.github/workflows/pre-building_test.yaml + uses: ./.github/workflows/rw_pre-building_test.yaml with: build-type: setuptools python_package_name: Test-GitHub-Action-workflow @@ -305,7 +305,7 @@ No, nothing at all.
-### _build_git-tag_and_create_github-release.yaml_ +### _rw_build_git-tag_and_create_github-release.yaml_ * Description: Build a git tag on a specific commit in every git branch. And create GitHub release if current git branch is 'master'. * Options: @@ -331,10 +331,10 @@ Yes, it has running result output. It would output the version which could provi * **_Python package_** usage case: ```yaml - build_git-tag_and_create_github-release: + rw_build_git-tag_and_create_github-release: # name: Build git tag and GitHub release if it needs for Python package project needs: [coveralls_finish, codacy_finish] - uses: ./.github/workflows/build_git-tag_and_create_github-release.yaml + uses: ./.github/workflows/rw_build_git-tag_and_create_github-release.yaml with: project_type: python-package project_name: test_gh_workflow @@ -345,10 +345,10 @@ Yes, it has running result output. It would output the version which could provi * **_GitHub Action reusable workflow_** usage case: ```yaml - build_git-tag_and_create_github-release: + rw_build_git-tag_and_create_github-release: # name: Build git tag and GitHub release if it needs for GitHub Action reusable workflow project needs: [coveralls_finish, codacy_finish] - uses: ./.github/workflows/build_git-tag_and_create_github-release.yaml + uses: ./.github/workflows/rw_build_git-tag_and_create_github-release.yaml with: project_type: github-action-reusable-workflow debug_mode: true @@ -360,7 +360,7 @@ The badge it generates:
-### _push_pkg_to_pypi.yaml_ +### _rw_push_pypi.yaml_ * Description: Compile source code and push the Python package to PyPI. (Official release the Python package) * Options: @@ -391,7 +391,7 @@ No, nothing at all. ```yaml push_python_pkg_to_pypi: # name: Upload the Python package files which has been compiled to PyPi - uses: ./.github/workflows/push_pkg_to_pypi.yaml + uses: ./.github/workflows/rw_push_pypi.yaml with: build-type: setuptools release-type: 'Official-Release'