This commit is contained in:
parent
099a1c9d5f
commit
f7c2933e54
@ -70,7 +70,7 @@ jobs:
|
||||
echo "Tests passed! Generating successful coverage badge..."
|
||||
|
||||
if [ -f coverage.json ]; then
|
||||
coverage-badge -o coverage.svg
|
||||
coverage-badge -o coverage.svg -f
|
||||
echo "✅ Test coverage badge updated with actual results"
|
||||
else
|
||||
echo "⚠️ No coverage.json found, keeping failed badge"
|
||||
@ -81,6 +81,8 @@ jobs:
|
||||
run: |
|
||||
echo "Docs check passed! Generating successful docs badge..."
|
||||
|
||||
# Remove existing badge first to avoid overwrite error
|
||||
rm -f coverage-docs.svg
|
||||
interrogate --generate-badge coverage-docs.svg pyWebLayout/
|
||||
echo "✅ Docs coverage badge updated with actual results"
|
||||
|
||||
@ -156,6 +158,9 @@ jobs:
|
||||
git config --local user.email "action@gitea.local"
|
||||
git config --local user.name "Gitea Action"
|
||||
|
||||
# Set the remote URL to use the token
|
||||
git remote set-url origin https://${{ secrets.PUSH_TOKEN }}@gitea.tourolle.paris/dtourolle/pyWebLayout.git
|
||||
|
||||
# Force add the SVG files (ignore .gitignore)
|
||||
git add -f coverage.svg coverage-docs.svg
|
||||
|
||||
@ -164,8 +169,7 @@ jobs:
|
||||
else
|
||||
echo "Committing updated badges..."
|
||||
git commit -m "Update coverage badges [skip ci]"
|
||||
# Use personal access token for push
|
||||
git push https://${{ secrets.PUSH_TOKEN }}@gitea.tourolle.paris/dtourolle/pyWebLayout.git HEAD:master
|
||||
git push origin HEAD:master
|
||||
fi
|
||||
|
||||
- name: Test package installation
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user