mirror of
https://github.com/pyTooling/Actions.git
synced 2026-02-12 02:56:56 +08:00
Merge unit test results using pyEDAA.Reports.
This commit is contained in:
2
.github/workflows/Parameters.yml
vendored
2
.github/workflows/Parameters.yml
vendored
@@ -138,7 +138,7 @@ jobs:
|
|||||||
if currentAlphaVersion in versions:
|
if currentAlphaVersion in versions:
|
||||||
print(f"::notice title=Experimental::Python {currentAlphaVersion} ({currentAlphaRelease}) is a pre-release.")
|
print(f"::notice title=Experimental::Python {currentAlphaVersion} ({currentAlphaRelease}) is a pre-release.")
|
||||||
for disable in disabled:
|
for disable in disabled:
|
||||||
print(f"::warning title=Disabled Python Job::System '{disable}' temporary disabled.")
|
print(f"::warning title=Disabled Python Job::System '{disable}' temporarily disabled.")
|
||||||
|
|
||||||
# see https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json
|
# see https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json
|
||||||
data = {
|
data = {
|
||||||
|
|||||||
22
.github/workflows/PublishTestResults.yml
vendored
22
.github/workflows/PublishTestResults.yml
vendored
@@ -48,7 +48,7 @@ jobs:
|
|||||||
|
|
||||||
- name: 🔧 Install junitparser
|
- name: 🔧 Install junitparser
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --disable-pip-version-check -U junitparser
|
python -m pip install --disable-pip-version-check -U pyEDAA.Reports
|
||||||
|
|
||||||
- name: Move JUnit files and collect them all to junit/
|
- name: Move JUnit files and collect them all to junit/
|
||||||
run: |
|
run: |
|
||||||
@@ -57,26 +57,16 @@ jobs:
|
|||||||
tree -a junit
|
tree -a junit
|
||||||
|
|
||||||
- name: 🔁 Merge JUnit Unit Test Summaries
|
- name: 🔁 Merge JUnit Unit Test Summaries
|
||||||
shell: python
|
|
||||||
run: |
|
run: |
|
||||||
from pathlib import Path
|
pyedaa-reports merge-unittest -v --junit "junit/*.xml"
|
||||||
from junitparser import JUnitXml
|
echo "cat Unittesting.xml"
|
||||||
|
cat Unittesting.xml
|
||||||
junitDirectory = Path("junit")
|
|
||||||
junitXml = None
|
|
||||||
for file in junitDirectory.iterdir():
|
|
||||||
if junitXml is None:
|
|
||||||
junitXml = JUnitXml.fromfile(file)
|
|
||||||
else:
|
|
||||||
junitXml += JUnitXml.fromfile(file)
|
|
||||||
|
|
||||||
junitXml.write(junitDirectory / "merged.xml")
|
|
||||||
|
|
||||||
- name: 📊 Publish Unit Test Results
|
- name: 📊 Publish Unit Test Results
|
||||||
uses: dorny/test-reporter@v1
|
uses: dorny/test-reporter@v1
|
||||||
with:
|
with:
|
||||||
name: Unit Test Results
|
name: Unit Test Results
|
||||||
path: junit/merged.xml
|
path: Unittesting.xml
|
||||||
reporter: java-junit
|
reporter: java-junit
|
||||||
|
|
||||||
- name: 📤 Upload merged 'JUnit Test Summary' artifact
|
- name: 📤 Upload merged 'JUnit Test Summary' artifact
|
||||||
@@ -84,6 +74,6 @@ jobs:
|
|||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ inputs.merged_junit_artifact }}
|
name: ${{ inputs.merged_junit_artifact }}
|
||||||
path: junit/merged.xml
|
path: Unittesting.xml
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
retention-days: 1
|
retention-days: 1
|
||||||
|
|||||||
2
.github/workflows/_Checking_Pipeline.yml
vendored
2
.github/workflows/_Checking_Pipeline.yml
vendored
@@ -84,7 +84,7 @@ jobs:
|
|||||||
codacy_token: ${{ secrets.CODACY_PROJECT_TOKEN }}
|
codacy_token: ${{ secrets.CODACY_PROJECT_TOKEN }}
|
||||||
|
|
||||||
PublishTestResults:
|
PublishTestResults:
|
||||||
uses: pyTooling/Actions/.github/workflows/PublishTestResults.yml@r1
|
uses: pyTooling/Actions/.github/workflows/PublishTestResults.yml@dev
|
||||||
needs:
|
needs:
|
||||||
- UnitTesting
|
- UnitTesting
|
||||||
- PlatformTesting
|
- PlatformTesting
|
||||||
|
|||||||
2
dist/requirements.txt
vendored
Normal file
2
dist/requirements.txt
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
wheel ~= 0.43
|
||||||
|
twine ~= 5.0
|
||||||
Reference in New Issue
Block a user