ci changes
Some checks failed
Python CI / test (push) Failing after 39s

This commit is contained in:
Duncan Tourolle 2025-06-07 15:55:46 +02:00
parent 835ae7cad1
commit 968661b3ce

View File

@ -91,10 +91,26 @@ jobs:
python -c "import pyWebLayout; print('Package imported successfully')"
- name: Commit coverage badges
if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/master'
run: |
echo "Current directory contents:"
ls -la *.svg || echo "No SVG files found"
echo "Checking if coverage files exist:"
ls -la coverage* || echo "No coverage files found"
git config --local user.email "action@gitea.local"
git config --local user.name "Gitea Action"
if ls coverage*.svg 1> /dev/null 2>&1; then
echo "Adding coverage badge files..."
git add coverage*.svg
git diff --staged --quiet || git commit -m "Update coverage badges [skip ci]"
if git diff --staged --quiet; then
echo "No changes to commit"
else
echo "Committing badge updates..."
git commit -m "Update coverage badges [skip ci]"
git push
fi
else
echo "No coverage SVG files found to commit"
fi