automation of badges
All checks were successful
Python CI / test (push) Successful in 41s

This commit is contained in:
Duncan Tourolle 2025-06-07 15:50:48 +02:00
parent 0e10f51bff
commit 835ae7cad1
2 changed files with 16 additions and 4 deletions

View File

@ -88,4 +88,13 @@ jobs:
- name: Test package installation - name: Test package installation
run: | run: |
# Test that the package can be imported # Test that the package can be imported
python -c "import pyWebLayout; print('Package imported successfully')" python -c "import pyWebLayout; print('Package imported successfully')"
- name: Commit coverage badges
if: github.ref == 'refs/heads/main'
run: |
git config --local user.email "action@gitea.local"
git config --local user.name "Gitea Action"
git add coverage*.svg
git diff --staged --quiet || git commit -m "Update coverage badges [skip ci]"
git push

View File

@ -1,8 +1,11 @@
# PyWebLayout # PyWebLayout
![Test Coverage](./coverage.svg) | Badge | Description |
![Documentation Coverage](./coverage-docs.svg) |-------|-------------|
| ![Test Coverage](./coverage.svg) | **Test Coverage** - Percentage of code covered by unit tests |
| ![Documentation Coverage](./coverage-docs.svg) | **Documentation Coverage** - Percentage of code with docstrings |
| ![Build Status](./build-status.svg) | **Build Status** - Current CI/CD pipeline status |
| ![License](https://img.shields.io/badge/license-MIT-blue.svg) | **License** - Project licensing information |
A Python library for HTML-like layout and rendering. A Python library for HTML-like layout and rendering.
## Description ## Description