Skip to content

Commit

Permalink
GHI #20 Re-enable publishing test results
Browse files Browse the repository at this point in the history
  • Loading branch information
doodspav committed Dec 23, 2023
1 parent a70a4af commit d02bba9
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,27 +120,27 @@ jobs:
# with:
# triple: ${{ matrix.triple }}
# architecture: ${{ matrix.architecture }}
#
# publish-results:
# runs-on: ubuntu-latest
# needs:
# - test-native
# - test-qemu
#
# steps:
# - name: Download Test Result Artifacts
# uses: actions/download-artifact@v3
# with:
# name: test-results
# path: test-results/
#
# - name: Publish Test Results
# uses: EnricoMi/publish-unit-test-result-action@v2
# with:
# action_fail: true
# action_fail_on_inconclusive: true
# check_name: "Test Results: Warning"
# files: test-results/**/*.xml

publish-results:
runs-on: ubuntu-latest
needs:
- test-native
# - test-qemu

steps:
- name: Download Test Result Artifacts
uses: actions/download-artifact@v3
with:
name: test-results
path: test-results/

- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
with:
action_fail: true
action_fail_on_inconclusive: true
check_name: "Test Results: Warning"
files: test-results/**/*.xml

publish-coverage:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -262,7 +262,7 @@ jobs:
# set up table with prologue
table_text = "## Test Coverage\n"
table_text = "| Target | Lines | Functions | Branches |\n"
table_text += "| Target | Lines | Functions | Branches |\n"
table_text += "| :----- | ----: | --------: | -------: |\n"
# get all non-hidden directories in ./test-coverage
Expand Down Expand Up @@ -327,7 +327,7 @@ jobs:
with open(OUT_FILE, "w") as f:
f.write(table_text)
# set output variable
# set output variables
with open(os.environ["GITHUB_OUTPUT"], 'a') as f:
print(f"any_fail={int(any_fail)}", file=f)
print(f"universal_warn={int(universal_warn)}", file=f)
Expand Down

0 comments on commit d02bba9

Please sign in to comment.