Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
217 commits
Select commit Hold shift + click to select a range
92389e8
[Breaking Change] (config) Remove unused configurations.
Chisanan232 Aug 24, 2022
32fff8c
[Breaking Change] (config) Modify the CI testing workflow.
Chisanan232 Aug 24, 2022
d2e5cda
[Breaking Change + Test] (config) Add a step about renaming file.
Chisanan232 Aug 24, 2022
4e73935
[Breaking Change] (config) Add one new option 'max_report_age' to be …
Chisanan232 Aug 24, 2022
2d7535b
[Test] (config) Test for uploading testing coverage reports feature.
Chisanan232 Aug 24, 2022
ad4ed17
[Test] (config) Test for uploading testing coverage reports feature.
Chisanan232 Aug 24, 2022
b9db386
[Test] (config) Test for uploading testing coverage reports feature.
Chisanan232 Aug 24, 2022
84b7d84
[Test] (config) Test for uploading testing coverage reports feature.
Chisanan232 Aug 24, 2022
fa39d5e
[Test] (config) Test for uploading testing coverage reports feature.
Chisanan232 Aug 24, 2022
30b7c6a
[Test] (config) Test for uploading testing coverage reports feature.
Chisanan232 Aug 24, 2022
0a151d2
[Test] (config) Test for uploading testing coverage reports feature.
Chisanan232 Aug 24, 2022
0cf6fd3
[Test] (config) Test for uploading testing coverage reports feature.
Chisanan232 Aug 24, 2022
61a745e
[Test] (config) Test for uploading testing coverage reports feature.
Chisanan232 Aug 24, 2022
63ccca7
[Breaking Change] (config) Remove unused step.
Chisanan232 Aug 24, 2022
bba28b0
[Test] (config) Test for uploading testing coverage reports feature.
Chisanan232 Aug 24, 2022
65cbfb8
[Test] (config) Test for uploading testing coverage reports feature.
Chisanan232 Aug 24, 2022
28213ce
[Test] (config) Test for uploading testing coverage reports feature.
Chisanan232 Aug 24, 2022
f88c225
[Test] (config) Test for another API token.
Chisanan232 Aug 24, 2022
c99e526
[Test] (config) Test for another API token.
Chisanan232 Aug 24, 2022
26a4456
[Test] (config) Add processes about setup Python and install Python d…
Chisanan232 Aug 24, 2022
4f0d4b0
[Test] (config) Modify the file paths.
Chisanan232 Aug 24, 2022
8ef44ff
[Test] (config) Test for uploading testing coverage reports feature.
Chisanan232 Aug 24, 2022
5d1a042
[Refactor] (config) Move the testing HTTP server code path.
Chisanan232 Aug 24, 2022
bef713f
[Breaking Change] (config) Modify the testing HTTP server module path.
Chisanan232 Aug 24, 2022
87b20f5
[Breaking Change] (config) Modify the version of 'codecov/codecov-act…
Chisanan232 Aug 24, 2022
9715ccd
[Breaking Change] (config) Modify the version of 'codecov/codecov-act…
Chisanan232 Aug 24, 2022
d6da7f0
[New Feature + Test] (config) Add new steps about uploading testing c…
Chisanan232 Aug 24, 2022
cd8c766
[New Feature + Test] (config) Add new steps about uploading testing c…
Chisanan232 Aug 24, 2022
28f5c20
[Breaking Change] (config) Add new job 'coveralls_finish' about uploa…
Chisanan232 Aug 24, 2022
f76f363
[Breaking Change] (config) Fix the issue about incorrect input parame…
Chisanan232 Aug 24, 2022
f8686f5
[Breaking Change] (config) Fix the issue about incorrect input parame…
Chisanan232 Aug 24, 2022
d8371e3
[Breaking Change] (config) Remove unused input parameter.
Chisanan232 Aug 24, 2022
5b89e10
[Breaking Change] (config) Modify the input parameters.
Chisanan232 Aug 24, 2022
2ab2278
[Breaking Change] (config) Modify the input parameters.
Chisanan232 Aug 24, 2022
cf155bd
[Breaking Change] (config) Add required input parameters.
Chisanan232 Aug 24, 2022
804cabb
test
Chisanan232 Aug 24, 2022
8633ba9
[Bug Fix] (config) Fix the incorrect input parameter.
Chisanan232 Aug 24, 2022
f99e51e
[Breaking Change + Test] (config) Add a option 'path-to-lcov'.
Chisanan232 Aug 24, 2022
2d674b4
[New Feature] (config) Add configuration of Coveralls.
Chisanan232 Aug 24, 2022
1c3aa29
[Breaking Change] (config) Modify the configuration to use command li…
Chisanan232 Aug 24, 2022
074d0d9
[Breaking Change + Test] (config) Fix some issues.
Chisanan232 Aug 24, 2022
08aba07
[Debug + Test] (config) Only test and troubleshooting with ubuntu-22.…
Chisanan232 Aug 24, 2022
6906fa2
[Breaking Change + Test] (config) Test.
Chisanan232 Aug 24, 2022
1eca974
[Breaking Change + Test] (config) Test.
Chisanan232 Aug 24, 2022
8482905
[Breaking Change + Test] (config) Test for uploading test report.
Chisanan232 Aug 25, 2022
925ade8
[Breaking Change + Test] (config) Test for uploading test report.
Chisanan232 Aug 25, 2022
8304d03
[Breaking Change + Test] (config) Test for uploading test report.
Chisanan232 Aug 25, 2022
d630c53
[Breaking Change + Test] (config) Test for uploading test report.
Chisanan232 Aug 25, 2022
a079bc2
[Breaking Change + Test] (config) Test for uploading test report.
Chisanan232 Aug 25, 2022
f335425
[Breaking Change + Test] (config) Test for uploading test report.
Chisanan232 Aug 25, 2022
8adc3fa
[Breaking Change + Test] (config) Test for uploading test report.
Chisanan232 Aug 25, 2022
b95f1db
[Breaking Change + Test] (config) Test for uploading test report.
Chisanan232 Aug 25, 2022
3689a3f
[Breaking Change + Test] (config) Test for uploading test report.
Chisanan232 Aug 25, 2022
c6499fc
[Breaking Change + Test] (config) Test for uploading test report.
Chisanan232 Aug 25, 2022
bac4af2
[Breaking Change + Test] (config) Test for uploading test report.
Chisanan232 Aug 25, 2022
dbadff5
[Breaking Change + Test] (config) Test for uploading test report.
Chisanan232 Aug 25, 2022
5cbd53b
[Breaking Change + Test] (config) Test for uploading test report.
Chisanan232 Aug 25, 2022
0879ac8
[Breaking Change + Test] (config) Test for uploading test report.
Chisanan232 Aug 25, 2022
2209418
[Breaking Change + Test] (config) Test for uploading test report.
Chisanan232 Aug 25, 2022
4632582
[Breaking Change + Test] (config) Test for uploading test report.
Chisanan232 Aug 25, 2022
b3a9a6b
[Refactor + Breaking Change + Test] (config) Integrate all features a…
Chisanan232 Aug 25, 2022
25d82a6
[Refactor + Test] (config) Modify to use newer reusable 'upload_test_…
Chisanan232 Aug 25, 2022
324c37a
[Bug Fix] (config) Fix the issue about incorrect setting of input par…
Chisanan232 Aug 25, 2022
b912e84
[Bug Fix] (config) Fix the issue about losing step to generate XML re…
Chisanan232 Aug 25, 2022
272400e
for testing.
Chisanan232 Aug 25, 2022
12454c7
[New Feature + Test] (config) Add 2 new reusable workflows about uplo…
Chisanan232 Aug 25, 2022
c3224b5
[Breaking Change + Test] (config) Test for uploading test report.
Chisanan232 Aug 25, 2022
798c57a
[Breaking Change] (config) Remove unused input parameter.
Chisanan232 Aug 25, 2022
6dc3891
[Bug Fix + Test] (config) Fix the issue about download name.
Chisanan232 Aug 25, 2022
4643de9
modify.
Chisanan232 Aug 25, 2022
4d1eb2c
test
Chisanan232 Aug 25, 2022
4a0b4ee
test
Chisanan232 Aug 25, 2022
3013fcc
test
Chisanan232 Aug 25, 2022
8b6848e
test
Chisanan232 Aug 25, 2022
157d566
test
Chisanan232 Aug 25, 2022
7ede3b2
[Test] (config) For testing.
Chisanan232 Aug 25, 2022
f452478
[Test] (config) For testing.
Chisanan232 Aug 25, 2022
c9d6991
[Test] (config) For testing.
Chisanan232 Aug 25, 2022
6649aee
[Test] (config) For testing 1.
Chisanan232 Aug 25, 2022
81f8c6b
[Refactor + Test] (config) Modify to use newer reusable 'organize_and…
Chisanan232 Aug 25, 2022
a1419c4
[Test] (config) For testing.
Chisanan232 Aug 25, 2022
e8b3acf
[Test] (config) For testing.
Chisanan232 Aug 25, 2022
015364f
[Test] (config) For testing.
Chisanan232 Aug 25, 2022
5eb6371
[Test] (config) For testing 11.
Chisanan232 Aug 25, 2022
ffda444
[Test] (config) For testing 11.
Chisanan232 Aug 25, 2022
71ad94e
[Test] (config) For testing 11.
Chisanan232 Aug 25, 2022
46f595c
[Test] (config) For testing 11.
Chisanan232 Aug 25, 2022
9236740
[Test] (config) For testing 11.
Chisanan232 Aug 25, 2022
b339a18
[Test] (config) For testing 13.
Chisanan232 Aug 25, 2022
59bd0ce
[Test] (config) For testing 14.
Chisanan232 Aug 25, 2022
cf1698f
[Test] (config) For testing with configuration of coverage tool.
Chisanan232 Aug 25, 2022
460db6f
[Test] (config) Comment out setting 'relative_files' in configuration…
Chisanan232 Aug 25, 2022
2ee4816
[Test] (config) Add setting 'parallel' in configuration of coverage t…
Chisanan232 Aug 25, 2022
078acad
[Test] (config) Remove all settings of section 'report' in configurat…
Chisanan232 Aug 25, 2022
7a1fd1f
[Test] (config) Test for uploading testing coverage reports feature o…
Chisanan232 Aug 25, 2022
95ea45f
[Test] (config) Add setting 'branch' in configuration of coverage tool.
Chisanan232 Aug 25, 2022
367b80c
[Test] (config) Modify the reusable workflow.
Chisanan232 Aug 25, 2022
780b856
[Test] (config) Modify the reusable workflow.
Chisanan232 Aug 25, 2022
e3398f3
[Breaking Change] (config) Modify the command line at step 'upload to…
Chisanan232 Aug 25, 2022
4593ebf
[Breaking Change + Test] (config) Test for uploading test report.
Chisanan232 Aug 25, 2022
8469eed
[Breaking Change + Test] (config) Add new option 'verbose' of command…
Chisanan232 Aug 26, 2022
30110d4
[Breaking Change] (config) Remove unused settings.
Chisanan232 Aug 26, 2022
8567f55
[Breaking Change + Test] (config) Add unit test processes.
Chisanan232 Aug 26, 2022
a8e5051
[Breaking Change + Test] (config) Adjust the processes.
Chisanan232 Aug 26, 2022
9c1074a
[Bug Fix] (config) Call incorrect reusable workflow.
Chisanan232 Aug 26, 2022
26b5097
[Breaking Change + Test] (config) Add a step about combining test cov…
Chisanan232 Aug 26, 2022
10c17df
[Breaking Change] (config) Integrate uploading report to Codacy featu…
Chisanan232 Aug 26, 2022
499fe06
[Breaking Change] (config) Add input parameter checking mechanism and…
Chisanan232 Aug 26, 2022
1f9a3f5
[Breaking Change] (config) Add newer workflow parameters.
Chisanan232 Aug 26, 2022
38d8dff
[New Feature + Test] (config) Add new testing for only one test type …
Chisanan232 Aug 26, 2022
7bd143b
[Breaking Change] (config) Rename the workflow.
Chisanan232 Aug 26, 2022
bcb58a6
[Bug Fix] (config) Fix the issue about incorrect YAML key.
Chisanan232 Aug 26, 2022
d8f9f38
[New Feature] (config) Add shell script for checking parameters.
Chisanan232 Aug 26, 2022
7d63f51
[Breaking Change] (config) Modify the running steps order.
Chisanan232 Aug 26, 2022
0449a7e
[Breaking Change] (config) Remove unused reusable workflow.
Chisanan232 Aug 26, 2022
4ca0492
[Breaking Change] (config) Add description of input parameters.
Chisanan232 Aug 26, 2022
05b66cd
[Bug Fix] (config) Fix the issue about incorrect parameters.
Chisanan232 Aug 26, 2022
5d2feb0
[New Feature] (config) Add new option 'debug_mode' for troubleshootin…
Chisanan232 Aug 26, 2022
715ac45
[Breaking Change] (config) Add new parameter of reusable workflow 'ru…
Chisanan232 Aug 26, 2022
f1c67aa
[Breaking Change] (config) Add description of input parameters.
Chisanan232 Aug 26, 2022
4f7b1b8
[Breaking Change] (config) Add description of input parameters.
Chisanan232 Aug 26, 2022
8a4f519
[Docs] (config) Format the description area.
Chisanan232 Aug 26, 2022
e448ad1
[Breaking Change] (config) Modify the testing HTTP server module path.
Chisanan232 Aug 26, 2022
1f93a7e
[Breaking Change] (config) Add a step to download shell script for ch…
Chisanan232 Aug 26, 2022
5d4c9ba
[Breaking Change] (config) Remove unused setting.
Chisanan232 Aug 26, 2022
5fabf61
[Breaking Change] (config) Add description about uploading file info.
Chisanan232 Aug 27, 2022
881eb7a
[Docs] (docs) Update the information of README.
Chisanan232 Aug 27, 2022
66884a0
[Docs] (docs) Fix some dispay issue.
Chisanan232 Aug 27, 2022
8c917f6
[Docs] (docs) Fix some dispay issue.
Chisanan232 Aug 27, 2022
89dc16c
[Docs] (docs) Add GitHub release note info. [skip ci]
Chisanan232 Aug 27, 2022
a9172bf
[Breaking Change] (config) Comment out the job 'codecov_finish'.
Chisanan232 Aug 27, 2022
ada423c
[New Feature] (config) Add GitHub release title info.
Chisanan232 Aug 28, 2022
a72e5c5
[New Feature] (scripts) Add shell script for building git tag and cre…
Chisanan232 Aug 28, 2022
d79278b
[New Feature] (code) Add sample source code about Python library sour…
Chisanan232 Aug 28, 2022
810c864
[New Feature] (config) Add a new setting file for controlling whether…
Chisanan232 Aug 28, 2022
be9cee9
[New Feature] (script) Add a mechanism about it would check the boole…
Chisanan232 Aug 28, 2022
13f34bf
[Breaking Change] (config) Add process about exporting release type a…
Chisanan232 Aug 28, 2022
823ac1d
[New Feature] (config) Add shell script for creating new git branch b…
Chisanan232 Aug 28, 2022
5e893ed
[New Feature] (config) Add jobs in CI/CD about afterhandle if testing…
Chisanan232 Aug 28, 2022
4666244
[Bug Fix] (config) Fix the issue about losing 'runs-on'.
Chisanan232 Aug 28, 2022
833b5bf
[Bug Fix] (config) Fix the issue about duplicated id.
Chisanan232 Aug 28, 2022
9f2fa94
[Test] (config) Test for assigning environment variable.
Chisanan232 Aug 28, 2022
fe3dd24
[Bug Fix] (config) Fix the issue about fatal: ambiguous argument 'mas…
Chisanan232 Aug 28, 2022
928f7f9
[Breaking Change + Test] (config) Modify setting about environment va…
Chisanan232 Aug 28, 2022
f7fd83b
[Breaking Change + Test] (config) Modify setting about environment va…
Chisanan232 Aug 28, 2022
8c92390
[Breaking Change + Test] (config) Modify setting about environment va…
Chisanan232 Aug 28, 2022
b07a0f2
[Breaking Change + Test] (config) Add initialing git branch process.
Chisanan232 Aug 28, 2022
9098bb6
[Breaking Change + Test] (config) Add process about running git comma…
Chisanan232 Aug 28, 2022
1861d35
[Bug Fix + Test] (config) Fix the issue about 'git diff'.
Chisanan232 Aug 28, 2022
33c1988
[Breaking Change + Test] (config) Modify the if-condition of job-runn…
Chisanan232 Aug 28, 2022
7167431
[Bug Fix] (config) Fix the incorrect syntax issue.
Chisanan232 Aug 28, 2022
631a6c3
[Bug Fix] (config) Fix the issue about incorrect usage of GitHub Acti…
Chisanan232 Aug 28, 2022
7d83d9c
[Test] (config) Test for building tag feature.
Chisanan232 Aug 28, 2022
ab470c5
[Test] (config) Test for building tag feature.
Chisanan232 Aug 28, 2022
4ea5817
[Test] (config) Test for building tag feature.
Chisanan232 Aug 28, 2022
2deff11
[Test] (config) Test for building tag feature.
Chisanan232 Aug 28, 2022
7062a8b
[Test] (config) Test for building tag feature.
Chisanan232 Aug 28, 2022
0e710ed
[Test] (config) Test for building tag feature.
Chisanan232 Aug 28, 2022
ffce745
[Test] (config) Test for building tag feature.
Chisanan232 Aug 28, 2022
71ecf00
[Test] (config) Test for building tag feature.
Chisanan232 Aug 29, 2022
e768261
[Test] (config) Test for building tag feature.
Chisanan232 Aug 29, 2022
f361042
[Breaking Change + Test] (config) Add git fetch process before git diff.
Chisanan232 Aug 29, 2022
81ec7ea
[Breaking Change] (config) Add if-condition that it only runs if curr…
Chisanan232 Aug 29, 2022
38480e7
[Test] (config) Test for setting environment variable feature.
Chisanan232 Aug 29, 2022
01bc324
[Test] (config) Test for setting environment variable feature.
Chisanan232 Aug 29, 2022
542311b
[Test] (config) Test for setting environment variable feature.
Chisanan232 Aug 29, 2022
99f606b
[Test] (config) Test for setting environment variable feature.
Chisanan232 Aug 29, 2022
d25d9ab
[Test] (config) Test for setting environment variable feature.
Chisanan232 Aug 29, 2022
a07e95b
[Test] (config) Test for setting environment variable feature.
Chisanan232 Aug 29, 2022
08eac59
[Test] (config) Test for setting environment variable feature.
Chisanan232 Aug 29, 2022
e23df82
[Test] (config) Test for setting environment variable feature.
Chisanan232 Aug 29, 2022
6e9007a
[Test] (config) Test for setting environment variable feature.
Chisanan232 Aug 29, 2022
f265023
[Test] (config) Test for setting environment variable feature.
Chisanan232 Aug 29, 2022
45b388b
[Test] (config) Test for setting environment variable feature.
Chisanan232 Aug 29, 2022
a01dd72
[Test] (config) Test for setting environment variable feature.
Chisanan232 Aug 29, 2022
8796422
[Test] (config) Test for getting and calculating get tag..
Chisanan232 Aug 29, 2022
0f9a724
[Breaking Change + Test] (config) Modify the implementation of gettin…
Chisanan232 Aug 29, 2022
4feb2c7
[Breaking Change] (config) Remove unused setting.
Chisanan232 Aug 30, 2022
6903c58
[Breaking Change + Test] (config) Refactor shell script
Chisanan232 Aug 30, 2022
63f6984
[Bug Fix] (script) Fix the issue about declare.
Chisanan232 Aug 30, 2022
8f11b2b
[Bug Fix] (script) Fix the issue about declare.
Chisanan232 Aug 30, 2022
7e1cd0d
[Bug Fix] (script) Fix the issue about declare.
Chisanan232 Aug 30, 2022
15e7098
[Breaking Change] (script) Remove unused script.
Chisanan232 Aug 30, 2022
1e01d17
[Breaking Change] (config) Modify the final output message.
Chisanan232 Aug 30, 2022
3f495a5
[Refactor] (config) Rename the reusable workflow name to be more clear.
Chisanan232 Aug 30, 2022
297388a
[New Feature] (config) Add new workflow about building git tag and cr…
Chisanan232 Aug 31, 2022
81bf785
[Breaking Change] (config) Modify to use reusable workflow to build g…
Chisanan232 Aug 31, 2022
f908eb4
[Breaking Change] (config) Modify to use reusable workflow to build g…
Chisanan232 Aug 31, 2022
b14613d
[Breaking Change] (script) Modify the order of input arguments.
Chisanan232 Aug 31, 2022
ea3770e
[Bug Fix] (config) Fix the issue about duplicated ID.
Chisanan232 Aug 31, 2022
803d286
[Bug Fix] (config) Fix the issue about duplicated ID and modify usage…
Chisanan232 Aug 31, 2022
905e3fd
[Breaking Change + Test] (config) Test for reusable workflow feature.
Chisanan232 Aug 31, 2022
e1c7099
[Breaking Change + Test] (config) Test for reusable workflow feature.
Chisanan232 Aug 31, 2022
f295242
[Breaking Change + Test] (config) Test for reusable workflow feature.
Chisanan232 Aug 31, 2022
7971e8c
[Bug Fix + Breaking Change + Test] (config) Fix the set-value issue o…
Chisanan232 Aug 31, 2022
088a0d5
[Breaking Change + Test] (config) Test for reusable workflow feature.
Chisanan232 Aug 31, 2022
e77d7e4
[Bug Fix + Test] (config) Fix the issue about 'needs'.
Chisanan232 Aug 31, 2022
55d10b1
[Bug Fix + Test] (config) Fix the issue about input parameters.
Chisanan232 Aug 31, 2022
382c97e
[Bug Fix + Test] (config) Fix the issue about reusable workflow output.
Chisanan232 Aug 31, 2022
70bfc4a
[Docs] (config) Add description of input parameters and output of reu…
Chisanan232 Aug 31, 2022
e3ac475
[Breaking Change] (config) Rename the workflow and remove some unused…
Chisanan232 Aug 31, 2022
3637557
[Breaking Change] (config) Rename the reusable workflow CI testing fi…
Chisanan232 Aug 31, 2022
73046a9
[Breaking Change] (config) Add checking process in job 'fake_build_pk…
Chisanan232 Aug 31, 2022
52ceccc
[New Feature] (config) Add new CI testing for GitHub Action reusable …
Chisanan232 Aug 31, 2022
973ecca
[Bug Fix + Test] (config) Fix the issue about 'job.<job id>.needs'.
Chisanan232 Aug 31, 2022
272c0ed
[Bug Fix + Test] (config) Fix the issue about 'job.<job id>.needs'.
Chisanan232 Aug 31, 2022
47941da
[Breaking Change] (config) Modify the log message to display.
Chisanan232 Sep 1, 2022
72e6425
[Breaking Change] (config) Adjust the log message.
Chisanan232 Sep 1, 2022
3af7431
[New Feature] (script) Add a shell script about checking whether it c…
Chisanan232 Sep 1, 2022
5cf6481
[Breaking Change] (config) Adjust the log message.
Chisanan232 Sep 1, 2022
5b66273
[Refactor + Breaking Change] (config) Refactor the getting test items…
Chisanan232 Sep 1, 2022
bf44bee
[Docs + New Feature] (docs) Update the information of README.
Chisanan232 Sep 1, 2022
87d9352
[Bug Fix] (config) Fix the issue about forget to git clone project.
Chisanan232 Sep 1, 2022
79a3614
[Docs] (docs) Add a newline.
Chisanan232 Sep 1, 2022
f4c0cff
[New Feature] (config) Add new CI/CD configuration for deployment.
Chisanan232 Sep 1, 2022
8a9bd69
[Breaking Change] (config) Add command lines to configure user info a…
Chisanan232 Sep 1, 2022
1ac1b52
[Breaking Change] (config) Add command lines to configure user info.
Chisanan232 Sep 1, 2022
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
6 changes: 1 addition & 5 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
# # This test directory for testing to simulate a Python library project structure.

[run]
branch = True
parallel = True
relative_files = True
source=./test_gh_workflow

omit =
*/__init__.py

#ignore_errors = True
1 change: 1 addition & 0 deletions .github/release-auto-flag.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
true
17 changes: 17 additions & 0 deletions .github/release-notes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
### 🎉🎊🍾 New feature
<hr>

1. Add new options about set up and run a sample HTTP server for testing if it needs in some testing scenario (_run_test_items_via_pytest.yaml_).

### 🛠⚙️🔩 **Breaking Change**
<hr>

1. Integrate the feature about organizing and generating testing coverage reports into a reusable workflow. So workflow could be shorter and clear (_organize_and_generate_test_cov_reports.yaml_).
2. Integrate all the uploading test coverage report features into a reusable workflow (_upload_test_cov_report.yaml_).
3. Update document README.
4. Move the PR template to **_.github_** directory (for working finely).

### ⚒⚒💣 **Bug Fix**
<hr>

1. Fix the issue about uploading test coverage report cannot work at all.
1 change: 1 addition & 0 deletions .github/release-title.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v2.0.0 - More short and clear <0001f9f9>🍻
100 changes: 100 additions & 0 deletions .github/workflows/build_git-tag_and_create_github-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
##############################################################################################
#
# Workflow Description:
# Build a git tag on a specific commit in every git branch. And create GitHub release if current git branch is 'master'.
#
# Workflow input parameters:
# * General arguments:
# * project_type: Different project type would get the software version info in different way.
# * debug_mode: It would run the tasks as log message, doesn't essentially run feature if this option is true.
# * project_name: The project name.
# * software_version_format: The format of software version.
#
# Workflow running output:
# Yes, it has running result output. The output is the release version.
#
# * Workflow output:
# It would output the version which would be build as git tag and create GitHub release version title.
# * python_release_version: Python project release version info.
# * github-action_reusable_workflow_release_version: GitHub Action reusable workflow project release version info.
#
##############################################################################################

name: Build git tag and create GitHub release with software version

on:
workflow_call:
inputs:
project_type:
description: "Different project type would get the software version info in different way."
required: true
type: string # Option: python, github-action_reusable-workflow
# activate_git_event:
# description: "Which git event should activate the workflow."
# type: string
# required: false
# default: push
debug_mode:
description: "It would run the tasks as log message, doesn't essentially run feature if this option is true."
type: boolean
required: false
default: false
project_name:
description: "The project name."
type: string
required: false
software_version_format:
description: "The format of software version."
type: string
required: false

outputs:
python_release_version:
description: "The version which would be build as git tag and create GitHub release version title."
value: ${{ jobs.build_git-tag_and_create_github-release.outputs.matrix_python }}
github-action_reusable_workflow_release_version:
description: "The version which would be build as git tag and create GitHub release version title."
value: ${{ jobs.build_git-tag_and_create_github-release.outputs.matrix_github_action_reusable_workflow }}


jobs:
build_git-tag_and_create_github-release:
# name: Build git tag and GitHub release if it needs
if: github.event_name == 'push'
runs-on: ubuntu-latest
outputs:
matrix_python: ${{ steps.python_release.outputs.release_type }}
matrix_github_action_reusable_workflow: ${{ steps.github_action_reusable_workflow_release.outputs.release_version }}
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Download shell script for checking input parameters
run: curl https://raw.githubusercontent.com/Chisanan232/GitHub-Action_Workflow-Template-Python/develop/scripts/ci/build_git-tag_or_create_github-release.sh --output ./scripts/ci/build_git-tag_or_create_github-release.sh

# This flow for the project type is Python project
- name: Build git tag and create GitHub release for Python project
if: ${{ inputs.project_type == 'python-package' }}
id: python_release
run: |
release=$(bash ./scripts/ci/build_git-tag_or_create_github-release.sh ${{ inputs.project_type }} ${{ inputs.debug_mode }} ${{ inputs.project_name }} ${{ inputs.software_version_format }})
echo "📄 Release log: $release"

release_type=$(echo "$release" | grep -E "\[Python\] \[Final Running Result\] ((Official\-Release)|(Pre\-Release))" | grep -E -o "((Official\-Release)|(Pre\-Release))")
echo "🐍 Release Type: $release_type"

echo "::set-output name=release_type::$(echo $release_type)"

# This flow for the project type is GitHub Action reusable workflow
- name: Build git tag and create GitHub release for GitHub Action reusable workflow project
if: ${{ inputs.project_type == 'github-action-reusable-workflow' }}
id: github_action_reusable_workflow_release
run: |
release=$(bash ./scripts/ci/build_git-tag_or_create_github-release.sh ${{ inputs.project_type }} ${{ inputs.debug_mode }})
echo "📄 Release log: $release"

release_version=$(echo "$release" | grep -E "\[GitHub Action - Reusable workflow\] \[Final Running Result\] Official-Release and version: ([0-9]{1,})" | grep -E -o "([0-9]{1,})")
echo "🤖 Release Version: $release_version"

echo "::set-output name=release_version::$(echo $release_version)"

52 changes: 52 additions & 0 deletions .github/workflows/ci-cd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: GitHub Action reusable workflow build

on:
push:
branches:
- "develop"
- "release"
- "master"
paths-ignore:
- ".gitcommitrules"
- ".gitignore"
- "LICENSE"
- "README.md"

pull_request:
branches:
- "develop"
- "release"
paths-ignore:
- ".gitcommitrules"
- ".gitignore"
- "LICENSE"
- "README.md"

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
with:
project_type: github-action-reusable-workflow
debug_mode: false


test_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' &&
github.event_name == 'push' &&
needs.test_build_git-tag_and_create_github-release.outputs.github-action_reusable_workflow_release_version != 'Pre' }}
runs-on: ubuntu-latest
env:
RELEASE_TYPE: ${{ needs.test_build_git-tag_and_create_github-release.outputs.github-action_reusable_workflow_release_version }}
DEBUG_MODE: false
steps:
- uses: actions/checkout@v2

- name: Check it whether get the output of previous one job which has version info or not
run: bash scripts/ci/check_getting_output.sh

- name: Create new git branch by the tagged commit
run: bash ./scripts/ci/deployment_new_version_workflow.sh $DEBUG_MODE

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
############################################################################
###################################################################################################################################
#
# Workflow Description:
# Organize all the testing coverage reports. (it would save reports by 'actions/upload-artifact@v3').
Expand All @@ -9,7 +9,11 @@
# Workflow running output:
# No, but it would save the testing coverage reports (coverage.xml) to provide after-process to organize and record.
#
############################################################################
# * Upload-Artifact:
# * test_coverage_report: The handled test coverage report (.coverage file). It's file name format would be .coverage.<inputs.test type>.
# * test_coverage_xml_report: The handled test coverage report (.xml file). It's file name format would be coverage_<inputs.test type>.xml.
#
###################################################################################################################################

name: Organize all testing coverage reports which be tested in many different runtime OS and Python version as a testing coverage report

Expand Down Expand Up @@ -45,6 +49,8 @@ jobs:
python3 -m pip install --upgrade pip
pip3 install -U pip
pip3 install coverage
pip3 install codecov
pip3 install coveralls

- name: Combine all testing code coverage result files with one specific test type
if: ${{ inputs.test_type == 'unit-test' || inputs.test_type == 'integration-test' }}
Expand All @@ -60,9 +66,16 @@ jobs:
- name: General testing coverage report as XML format with ${{ inputs.test_type }}
run: coverage xml --data-file=.coverage.${{ inputs.test_type }} -o coverage_${{ inputs.test_type }}.xml

- name: Upload testing coverage report
- name: Upload testing coverage report (.coverage)
uses: actions/upload-artifact@v3
with:
name: test_coverage_report
path: .coverage.${{ inputs.test_type }}
if-no-files-found: error

- name: Upload testing coverage report (.xml)
uses: actions/upload-artifact@v3
with:
name: final_project_testing_coverage_report
name: test_coverage_xml_report
path: coverage_${{ inputs.test_type }}.xml
if-no-files-found: error
64 changes: 61 additions & 3 deletions .github/workflows/run_test_items_via_pytest.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
############################################################################
#################################################################################################################################
#
# Workflow Description:
# Run testing by specific type with all test items via PyTest and generate its testing
Expand All @@ -12,11 +12,16 @@
# * http_server_port: The port number of HTTP server.
# * http_server_app_module: The module path of HTTP server.
# * http_server_enter_point: The object about the web application.
# * debug_mode: For debug, so it's matrix would one has os: ubuntu-22.04 & python-version: '3.10'.
#
# Workflow running output:
# No, but it would save the testing coverage reports to provide after-process to organize and record.
#
############################################################################
# * Upload-Artifact:
# * coverage: The test coverage report which be generated by PyTest, and it's recorded after run test done.
# The file name format would be .coverage.<test type>.<runtime os>-<python-version>
#
#################################################################################################################################

name: Run test items via PyTest

Expand Down Expand Up @@ -56,16 +61,22 @@ on:
type: string
required: false
default: app
debug_mode:
description: "For debug, so it's matrix would one has os: ubuntu-22.04 & python-version: '3.10'."
type: boolean
required: false
default: false


jobs:
run_test_items:
if: ${{ inputs.debug_mode == false }}
runs-on: ${{ matrix.os }}

strategy:
matrix:
python-version: [3.6,3.7,3.8,3.9,'3.10']
os: [ubuntu-18.04,ubuntu-20.04,ubuntu-22.04, macos-10.15,macos-11,macos-12]
os: [ubuntu-18.04,ubuntu-20.04,ubuntu-22.04,macos-10.15,macos-11,macos-12]
exclude:
- os: ubuntu-18.04
python-version: 3.6
Expand Down Expand Up @@ -128,3 +139,50 @@ jobs:
path: .coverage.${{ inputs.test_type }}.${{ matrix.os }}-${{ matrix.python-version }}
if-no-files-found: error


run_test_items_with_debug_mode:
if: ${{ inputs.debug_mode == true }}
runs-on: ${{ matrix.os }}

strategy:
matrix:
python-version: ['3.10']
os: [ubuntu-22.04]
test-path: ${{fromJson(inputs.all_test_items_paths)}}

steps:
- uses: actions/checkout@v2

- name: Install Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -U pip
pip install -U -r ./requirements/requirements.txt
pip install -U -r ./requirements/requirements-test.txt

- name: Setup and run HTTP server for testing
if: ${{ inputs.setup_http_server == true }}
run: gunicorn --bind ${{ inputs.http_server_host }}:${{ inputs.http_server_port }} '${{ inputs.http_server_app_module }}:${{ inputs.http_server_enter_point }}' --daemon

- name: Test to send HTTP request to sample HTTP server
if: ${{ inputs.setup_http_server == true }}
run: curl "http://${{ inputs.http_server_host }}:${{ inputs.http_server_port }}/exchangeReport/STOCK_DAY?response=json&date=20170101&stockNo=2331"

- name: Run tests with pytest
run: pytest ${{ matrix.test-path }}
continue-on-error: true

- name: Rename the code coverage result file
run: mv ./.coverage ./.coverage.${{ inputs.test_type }}.${{ matrix.os }}-${{ matrix.python-version }}

- name: Upload code coverage result file
uses: actions/upload-artifact@v3
with:
name: coverage
path: .coverage.${{ inputs.test_type }}.${{ matrix.os }}-${{ matrix.python-version }}
if-no-files-found: error
56 changes: 56 additions & 0 deletions .github/workflows/test_gh_reusable_workflow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: GitHub Action reusable workflow project CI Test

on:
push:
branches:
- "develop"
- "release"
- "release-**"
- "release/**"
- "master"
paths-ignore:
- ".gitcommitrules"
- ".gitignore"
- "LICENSE"
- "README.md"

pull_request:
branches:
- "develop"
- "release"
- "release-**"
- "release/**"
- "master"
paths-ignore:
- ".gitcommitrules"
- ".gitignore"
- "LICENSE"
- "README.md"

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
with:
project_type: github-action-reusable-workflow
debug_mode: true


test_deploy_as_new_branch:
# name: Create new git branch by the tagged commit
needs: test_build_git-tag_and_create_github-release
if: ${{ github.event_name == 'push' &&
needs.test_build_git-tag_and_create_github-release.outputs.github-action_reusable_workflow_release_version != 'Initial' &&
needs.test_build_git-tag_and_create_github-release.outputs.github-action_reusable_workflow_release_version != 'Pre' }}
runs-on: ubuntu-latest
env:
RELEASE_TYPE: ${{ needs.test_build_git-tag_and_create_github-release.outputs.github-action_reusable_workflow_release_version }}
steps:
- uses: actions/checkout@v2

- name: Check it whether get the output of previous one job which has version info or not
run: bash scripts/ci/check_getting_output.sh

- name: Create new git branch by the tagged commit
run: bash ./scripts/ci/deployment_new_version_workflow.sh 'true'

Loading