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