Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/ci-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,20 @@ 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
uses: ./.github/workflows/rw_build_git-tag_and_create_github-release.yaml
secrets:
github_auth_token: ${{ secrets.GITHUB_TOKEN }}
with:
project_type: github-action-reusable-workflow
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
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' }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_gh_reusable_workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/test_pyproject_ci_multi-tests_by_poetry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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}}
Expand All @@ -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}}
Expand All @@ -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

Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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
Expand All @@ -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
Expand Down
32 changes: 21 additions & 11 deletions .github/workflows/test_python_project_ci_multi-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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}}
Expand All @@ -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}}
Expand All @@ -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

Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -108,19 +108,29 @@ 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:
test_type: all-test
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]
uses: ./.github/workflows/pre-building_test.yaml
needs: [codecov_finish, coveralls_finish, codacy_finish, sonarqube_finish]
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
Expand All @@ -130,7 +140,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
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/test_python_project_ci_one-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ 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/


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}}
Expand All @@ -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

Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
Loading