@@ -118,6 +118,21 @@ from needed workflow _prepare-testing-items_unit-test_, and the context it wants
118118And be more essentially, what outputs it want to use? It's _all_test_items_. Do you discover this keyword
119119is provided by previous workflow? That is all testing items.
120120
121+ > **_NOTE:_**
122+ >
123+ > It also has another reusable workflow names _poetry_run_test_via_pytest.yaml_. If your Python project manages by **Poetry**,
124+ > it recommends you to use this one replaces _run_test_items_via_pytest.yaml_. The usage and running details are mostly same
125+ > as _run_test_items_via_pytest.yaml_. But, workflow _poetry_run_test_via_pytest.yaml_ only supports Python version 3.8 up.
126+ >
127+
128+ * Difference between workflows _run_test_items_via_pytest.yaml_ and _poetry_run_test_via_pytest.yaml_
129+
130+ | Workflow | Running way | Support Python version |
131+ |-----------------------------------|---------------------------------------------------|------------------------|
132+ | _run_test_items_via_pytest.yaml_ | Command lines like ` ` pip` ` , ` ` python` ` , etc | 3.6 - 3.11 |
133+ | _poetry_run_test_via_pytest.yaml_ | Use ` ` poetry` ` feature or run command lines in it | 3.8 - 3.11 |
134+
135+
121136<hr>
122137
123138### _organize_and_generate_test_cov_reports.yaml_
@@ -212,7 +227,7 @@ Nothing.
212227
213228 The badge it generates:
214229
215- [](https://codecov.io/gh/Chisanan232/GitHub-Action-Template -Python)
230+ [](https://codecov.io/gh/Chisanan232/GitHub-Action_Reusable_Workflows -Python)
216231
217232 * Uploading test coverage report to **_Coveralls_** (accepted report format: _.coverage_)
218233
@@ -232,7 +247,7 @@ Nothing.
232247
233248 The badge it generates:
234249
235- [](https://coveralls.io/github/Chisanan232/GitHub-Action-Template -Python?branch=master)
250+ [](https://coveralls.io/github/Chisanan232/GitHub-Action_Reusable_Workflows -Python?branch=master)
236251
237252 * Uploading test coverage report to **_Codacy_** (accepted report format: _.xml_)
238253
@@ -262,13 +277,13 @@ Nothing.
262277* Description: Test package by simple way after running setup.py script to install Python package
263278* Options:
264279
265- | option name | data type | optional or required | function content |
266- |---------------------------- |-----------|-------------------------------------------|-----------------------------------------------------|
267- | python_package_name | string | Required | The Python package name. |
268- | test_import_package_code_1 | string | Optional, Default value is _empty string_ | Test for importing the Python package. |
269- | test_import_package_code_2 | string | Optional, Default value is _empty string_ | Test for importing the Python package. |
270- | test_import_package_code_3 | string | Optional, Default value is _empty string_ | Test for importing the Python package . |
271- | test_python_script | string | Optional, Default value is _empty string_ | Run a Python script for testing the Python package. |
280+ | option name | data type | optional or required | function content |
281+ |----------------------|-----------|-------------------------------------------|-----------------------------------------------------|
282+ | build-type | string | Optional, Default value is _setuptools_ | The way CI should run the pre-build test. |
283+ | python_package_name | string | Required | The Python package name. |
284+ | test_shell | string | Optional, Default value is _empty string_ | Run command line(s) for testing. |
285+ | test_shell_in_python | string | Optional, Default value is _empty string_ | Run Python code as script for testing . |
286+ | test_python_script | string | Optional, Default value is _empty string_ | Run a Python script for testing the Python package. |
272287
273288* Output:
274289
@@ -281,9 +296,10 @@ No, nothing at all.
281296# name: Check about it could work finely by installing the Python package with setup.py file
282297 uses : ./.github/workflows/pre-building_test.yaml
283298 with :
299+ build-type : setuptools
284300 python_package_name : Test-GitHub-Action-workflow
285- test_import_package_code_1 : from test_gh_workflow import sample
286- test_import_package_code_2 : sample.hello_python()
301+ test_shell_in_python : from test_gh_workflow import sample
302+ test_shell : echo 'Echo something for testing'
287303 test_python_script : ./scripts/ci/test/test_pgk_install.py
288304` ` `
289305
@@ -355,6 +371,7 @@ _General option_:
355371
356372| option name | data type | optional or required | function content |
357373|--------------|-----------|-------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------|
374+ | build-type | string | Optional, Default value is _setuptools_ | Which way CI should to package the Python code. It has 2 type options: 'setuptools' or 'poetry'. |
358375| release-type | string | Required | The type of release processing. It has 2 type options: 'Official-Release' or 'Pre-Release'. It won't push the package to PyPI if it's 'Pre-Release'. |
359376| push-to-PyPI | string | Optional, Default value is _empty string_ | Push Python package to official PyPI or test PyPI. It has 2 type options: 'official' or 'test'. |
360377
@@ -376,6 +393,7 @@ No, nothing at all.
376393# name: Upload the Python package files which has been compiled to PyPi
377394 uses : ./.github/workflows/push_pkg_to_pypi.yaml
378395 with :
396+ build-type : setuptools
379397 release-type : ' Official-Release'
380398 push-to-PyPI : test
381399 secrets :
0 commit comments