Skip to content

Commit 8089354

Browse files
committed
[New Feature] (config) Import new reusable workflow setting.
1 parent 5b326cf commit 8089354

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

.github/workflows/test_python_project_ci_multi-tests.yaml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -114,21 +114,22 @@ jobs:
114114
upload-to-codacy: true
115115

116116

117-
# pre-building_check:
118-
## name: Check about it could work finely by installing the Python package with setup.py file
119-
# needs: [codecov_finish, codacy_finish]
120-
# uses: ./.github/workflows/pre-building_test_setup_package.yaml
121-
# with:
122-
# python_package_name: smoothcrawler
123-
# test_import_package_code_1: import smoothcrawler as mr
124-
# test_import_package_code_2: from smoothcrawler.crawler import SimpleCrawler
125-
# test_import_package_code_3: from smoothcrawler.components.data import BaseHTTPResponseParser, BaseDataHandler
126-
# test_python_script: ./scripts/test_crawler.py
117+
pre-building_test:
118+
# name: Check about it could work finely by installing the Python package with setup.py file
119+
if: github.event_name == 'push' && (github.ref_name == 'release' || github.ref_name == 'master')
120+
needs: [codecov_finish, coveralls_finish, codacy_finish]
121+
uses: ./.github/workflows/pre-building_test.yaml
122+
with:
123+
python_package_name: Test-GitHub-Action-workflow
124+
test_import_package_code_1: import test_gh_workflow
125+
test_import_package_code_2: from test_gh_workflow import sample
126+
test_import_package_code_3: sample.hello_python()
127+
test_python_script: ./scripts/ci/test/test_pgk_install.py
127128

128129

129130
build_git-tag_and_create_github-release:
130131
# name: Build git tag and GitHub release if it needs
131-
needs: [codecov_finish, coveralls_finish, codacy_finish]
132+
needs: pre-building_test
132133
uses: ./.github/workflows/build_git-tag_and_create_github-release.yaml
133134
with:
134135
project_type: python-package

.github/workflows/test_python_project_ci_one-test.yaml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -90,22 +90,21 @@ jobs:
9090
upload-to-codacy: true
9191

9292

93-
# pre-building_check:
94-
## name: Check about it could work finely by installing the Python package with setup.py file
95-
# if: github.event_name == 'push' && (github.ref_name == 'release' || github.ref_name == 'master')
96-
# needs: [codecov_finish, codacy_finish]
97-
# uses: ./.github/workflows/pre-building_test_setup_package.yaml
98-
# with:
99-
# python_package_name: smoothcrawler
100-
# test_import_package_code_1: import smoothcrawler as mr
101-
# test_import_package_code_2: from smoothcrawler.crawler import SimpleCrawler
102-
# test_import_package_code_3: from smoothcrawler.components.data import BaseHTTPResponseParser, BaseDataHandler
103-
# test_python_script: ./scripts/test_crawler.py
93+
pre-building_test:
94+
# name: Check about it could work finely by installing the Python package with setup.py file
95+
needs: [codecov_finish, coveralls_finish, codacy_finish]
96+
uses: ./.github/workflows/pre-building_test.yaml
97+
with:
98+
python_package_name: Test-GitHub-Action-workflow
99+
test_import_package_code_1: import test_gh_workflow
100+
test_import_package_code_2: from test_gh_workflow import sample
101+
test_import_package_code_3: sample.hello_python()
102+
test_python_script: ./scripts/ci/test/test_pgk_install.py
104103

105104

106105
build_git-tag_and_create_github-release:
107106
# name: Build git tag and GitHub release if it needs
108-
needs: [coveralls_finish, codecov_finish, codacy_finish]
107+
needs: pre-building_test
109108
uses: ./.github/workflows/build_git-tag_and_create_github-release.yaml
110109
with:
111110
project_type: python-package

0 commit comments

Comments
 (0)