Skip to content

Commit

Permalink
[Bugfix] CI: Adjust Code Coverage Workflow (#1276)
Browse files Browse the repository at this point in the history
* Fixed ::= CI:  simplify PR workflow

* Create summary of recent changes

---------

Co-authored-by: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
kevinmatthes and github-actions[bot] committed Mar 8, 2024
1 parent d4cd116 commit 178d478
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 47 deletions.
52 changes: 5 additions & 47 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ permissions:
pull-requests: write

jobs:
code:
coverage:
runs-on: ubuntu-latest
steps:
- uses: taiki-e/install-action@v2.28.6
Expand All @@ -63,53 +63,11 @@ jobs:
- run: |
rustup update
cargo llvm-cov --cobertura --output-path cobertura.xml
{
echo '```' ;
pycobertura show cobertura.xml ;
echo '```' ;
} >> coverage.md
pycobertura show cobertura.xml >> coverage.md
- uses: thollander/actions-comment-pull-request@v2.5.0
- uses: actions/upload-artifact@v4.3.1
with:
comment_tag: coverage
filePath: coverage.md

coverage:
runs-on: ubuntu-latest
steps:
- run: bash -c 'exit 0'

# mutations:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3.5.3
# with:
# persist-credentials: false
#
# - uses: baptiste0928/cargo-install@v2.1.0
# with:
# crate: cargo-mutants
#
# - run: |
# rustup update
# cargo mutants
# {
# echo '```' ;
# jq '{ \
# total: .total_mutants, \
# unviable: .unviable, \
# missed: .missed, \
# caught: .caught, \
# timeout: .timeout, \
# success: .success, \
# failure: .failure \
# }' ;
# echo '```' ;
# } >> mutations.md
#
# - uses: thollander/actions-comment-pull-request@v2.4.2
# with:
# comment_tag: mutations
# filePath: mutations.md
name: code-coverage.txt
path: code-coverage.txt

################################################################################
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
(
references: {},
changes: {
"Fixed": [
"CI: simplify PR workflow",
],
},
)

0 comments on commit 178d478

Please sign in to comment.