Skip to content

Commit a60c5c9

Browse files
committed
[Breaking Change] (config) Remove unused input parameter and configuration.
1 parent 4b48130 commit a60c5c9

File tree

1 file changed

+1
-52
lines changed

1 file changed

+1
-52
lines changed

.github/workflows/organize_all_testing_coverage_reports_with_different_os_and_py_version.yaml

Lines changed: 1 addition & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
#
66
# Workflow input parameters:
77
# * test_type: The testing type. In generally, it only has 2 options: 'unit-test' and 'integration-test'.
8-
# * generate_xml_report_finally: Something, it only has 1 test type currently. So it could let this option
9-
# to be 'true' than it would generate XML report finally to let uploading process to use it directly.
108
#
119
# Workflow running output:
1210
# No, but it would save the testing coverage reports (coverage.xml) to provide after-process to organize and record.
@@ -22,11 +20,6 @@ on:
2220
description: "The testing type. In generally, it only has 2 options: 'unit-test' and 'integration-test'."
2321
required: true
2422
type: string
25-
# generate_xml_report_finally:
26-
# description: "Something, it only has 1 test type currently. So it could let this option to be 'true' than it would generate XML report finally to let uploading process to use it directly."
27-
# type: boolean
28-
# required: false
29-
# default: false
3023

3124

3225
jobs:
@@ -53,7 +46,7 @@ jobs:
5346
pip3 install -U pip
5447
pip3 install coverage
5548
56-
- name: Combine all testing code coverage result files with ${{ inputs.test_type }}
49+
- name: Combine all testing code coverage result files with one specific test type
5750
if: ${{ inputs.test_type == 'unit-test' || inputs.test_type == 'integration-test' }}
5851
run: coverage combine --data-file=.coverage.${{ inputs.test_type }} .coverage.${{ inputs.test_type }}.*
5952

@@ -73,47 +66,3 @@ jobs:
7366
name: final_project_testing_coverage_report
7467
path: coverage_${{ inputs.test_type }}.xml
7568
if-no-files-found: error
76-
77-
# generate_final_test_report:
78-
# if: ${{ inputs.generate_xml_report_finally == true }}
79-
## if: inputs.generate_xml_report_finally == 'true'
80-
# needs: organize_test_reports
81-
# runs-on: ubuntu-latest
82-
# steps:
83-
# - name: Download code coverage result file
84-
# uses: actions/download-artifact@v3
85-
# with:
86-
# name: project_testing_coverage_report_${{ inputs.test_type }}
87-
# path: ./
88-
#
89-
# - name: General testing coverage report as XML format
90-
# run: coverage xml --data-file=.coverage_test -o coverage_test.xml
91-
#
92-
# - name: Upload testing coverage report
93-
# uses: actions/upload-artifact@v3
94-
# with:
95-
# name: final_project_testing_coverage_report
96-
# path: coverage.xml
97-
# if-no-files-found: error
98-
99-
# generate_test_type_report:
100-
# if: ${{ inputs.generate_xml_report_finally == false }}
101-
## if: inputs.generate_xml_report_finally == 'false'
102-
# needs: organize_test_reports
103-
# runs-on: ubuntu-latest
104-
# steps:
105-
# - name: Download code coverage result file
106-
# uses: actions/download-artifact@v3
107-
# with:
108-
# name: project_testing_coverage_report_${{ inputs.test_type }}
109-
# path: ./
110-
#
111-
# - name: Rename the testing coverage report with test type
112-
# run: mv .coverage .coverage-${{ inputs.test_type }}
113-
#
114-
# - name: Upload testing coverage report
115-
# uses: actions/upload-artifact@v3
116-
# with:
117-
# name: new_project_testing_coverage_report_${{ inputs.test_type }}
118-
# path: .coverage-${{ inputs.test_type }}
119-
# if-no-files-found: error

0 commit comments

Comments
 (0)