From 65bafeee6f1af5c808f986dbac8269ce2722430c Mon Sep 17 00:00:00 2001 From: Chezka Quinola Date: Thu, 21 Nov 2024 17:51:11 -0500 Subject: [PATCH] fixed coverage and commit update in .yml file. --- .github/workflows/build.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 62e0577..0d265cf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -73,7 +73,10 @@ jobs: - name: Run Tests run: | poetry run task test-not-fuzz - # Run the tests and coverage + # Run coverage + - name: Run Coverage + run: pytest --cov=. --cov-report=term + # Run the tests and update badges - name: Run Tests and Update Badges run: poetry run python scripts/badges.py # Generate badges @@ -84,7 +87,8 @@ jobs: run: | git config --global user.name "github-actions" git config --global user.email "github-actions@github.com" + git checkout main # Ensure you're on the main branch git add README.md git commit -m "Update badges in README.md" || echo "No changes to commit" - git push + git push origin main