Skip to content

Bump version

Bump version #10

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Coverage
on:
push:
branches: [ "master" ]
paths-ignore:
- 'coverage-badge.svg'
- 'README.md'
pull_request:
branches: [ "master" ]
paths-ignore:
- 'coverage-badge.svg'
- 'README.md'
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.13"]
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest coverage genbadge[all]
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Test with pytest
run: |
coverage run -m pytest
coverage report
coverage xml
- name: Create coverage badge
run: |
genbadge coverage -i coverage.xml
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Update Coverage
file_pattern: 'coverage-badge.svg'