updating print

This commit is contained in:
Bhavin Patel
2024-07-09 13:24:31 -07:00
parent b1e19f8c1a
commit 3d3482316b
2 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ def main():
else:
print(f"{name:<80} | 🟢 {status:<6} | {test_type:<10} | {'-':<50}")
# Print table footer
print(f"{'----':<80} | {'------':<6} | {'---------':<10} | {'---------':<50}")
# print(f"{'----':<80} | {'------':<6} | {'---------':<10} | {'---------':<50}")
# Check if total_fail is a valid integer and greater than or equal to one
print("\n") # Print a newline for separation
+6 -4
View File
@@ -27,8 +27,8 @@ jobs:
python -m pip install --upgrade pip
pip install contentctl
- name: Run ContentCTL test for changes against develop
# Running contentctl test with a few arguments, before running the command make sure you checkout into the current branch of the pull request. This step only performs unit testing on all the changes against the target-branch. In most cases this target branch will be develop
- name: Run ContentCTL test for changes against target branch
run: |
echo "Current Branch (Head Ref): ${{ github.head_ref }}"
echo "Target Branch (Base Ref): ${{ github.base_ref }}"
@@ -39,7 +39,7 @@ jobs:
echo "contentctl test - COMPLETED"
continue-on-error: true
# Store test_results/summary.yml and dist/DA-ESS-ContentUpdate-latest.tar.gz to job artifact-test_summary_results.zip
- name: store_artifacts
uses: actions/upload-artifact@v4
with:
@@ -49,10 +49,12 @@ jobs:
dist/DA-ESS-ContentUpdate-latest.tar.gz
continue-on-error: true
# Print entire result summary so that the users can view it in the Github Actions logs
- name: Print entire test_results/summary.yml
run: cat test_results/summary.yml
continue-on-error: true
# Run a simple custom script created to pretty print results in a markdown friendly format in Github Actions Summary
- name: Check the test_results/summary.yml for pass/fail.
run: |
echo "This job will fail if there are failures in unit-testing"