Skip to content

Commit

Permalink
generate test coverage badges after testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Trimatix authored Mar 2, 2024
1 parent 6c5c067 commit 2e1002b
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,28 @@ jobs:
echo "::error title=Test failures::Tests had ${{ steps.coverageComment.outputs.failures }} failures, but must have 0 to pass"
exit 1
fi
# Extract branch name
# var REF = 'refs/pull/27/merge.json';
REF=${{ github.ref }}
# console.log('github.ref: ' + REF);
echo "github.ref: $REF"
# var PATHS = REF.split('/');
IFS='/' read -ra PATHS <<< "$REF"
# var BRANCH_NAME = PATHS[1] + PATHS[2];
BRANCH_NAME="${PATHS[1]}_${PATHS[2]}"
# console.log(BRANCH_NAME); // 'pull_27'
echo $BRANCH_NAME
# process.env.BRANCH = 'pull_27';
echo "BRANCH=$(echo ${BRANCH_NAME})" >> $GITHUB_ENV
- name: Create readme test coverage Badge
uses: schneegans/dynamic-badges-action@v1.7.0
with:
auth: ${{ secrets.GIST_SECRET }}
gistID: 8a5430ecc0f87b003367174b1521f3bb
filename: AEPi__${{ env.BRANCH }}.json
label: test coverage
message: ${{ steps.coverageComment.outputs.coverage }}
valColorRange: ${{ steps.coverageComment.outputs.coverage }}
maxColorRange: 100
minColorRange: 0

1 comment on commit 2e1002b

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
src/AEPi
   codec.py37392%22, 40, 119
   constants.py61297%33, 54
   exceptions.py401172%18–19, 28–29, 39–40, 47, 54, 61, 68–69
src/AEPi/codecs
   EtcPakCodec.py231152%10–11, 21–31
   Tex2ImgCodec.py22386%10–11, 27
   __init__.py8275%11–12
src/AEPi/image
   AEI.py2252091%120, 180, 184, 197, 224, 287, 293–296, 301, 306, 325, 332, 339–340, 371, 385–386, 463–464
   texture.py19289%29, 49
src/AEPi/lib
   binaryio.py24196%64
   imageOps.py9278%13–14
src/tests/image
   test_AEI.py199199%29
TOTAL7905893% 

Tests Skipped Failures Errors Time
43 0 💤 0 ❌ 0 🔥 0.298s ⏱️

Please sign in to comment.