@@ -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
0 commit comments