Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
chrabyrd committed Apr 2, 2024
1 parent 70ad9e5 commit af38ccf
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,11 @@ jobs:
run: |
coverage report
- name: Show contents of .coverage file
run: |
git fetch origin main:main
coverage_file_contents=$(coverage report -i)
echo "$coverage_file_contents" > .coverage_contents
cat .coverage_contents
- name: Retrieve baseline coverage
run: |
git fetch origin main:main
baseline_coverage=$(git show main:.coverage | coverage report -m | sed -n '/TOTAL/ s/.*\s\([0-9.]*%\).*/\1/p' | sed 's/%//')
git checkout main
baseline_coverage=$(coverage report -m | sed -n '/TOTAL/ s/.*\s\([0-9.]*%\).*/\1/p' | sed 's/%//')
echo "Baseline Coverage: $baseline_coverage"
echo "$baseline_coverage" > .coverage_baseline
Expand Down

0 comments on commit af38ccf

Please sign in to comment.