Skip to content

Coverage for 2b9963f71d77de5723b885f7e57f2c79db75aedc #294

Coverage for 2b9963f71d77de5723b885f7e57f2c79db75aedc

Coverage for 2b9963f71d77de5723b885f7e57f2c79db75aedc #294

Workflow file for this run

name: Coverage
run-name: Coverage for ${{ github.sha }}
on: [push]
jobs:
coverage:
timeout-minutes: 10
runs-on: ubuntu-latest
defaults:
run:
working-directory: .
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Display Python version for testing purposes
run: python -c "import sys; print(sys.version)"
- name: Install Python dependencies
uses: py-actions/py-dependency-install@v4
with:
path: "requirements.txt"
- name: Run unittests with pytest and coverage
run: python -m pytest --cov -v --cov-report=html:UnitTests/htmlcov --cache-clear
- name: Coverage Badge.
uses: tj-actions/coverage-badge-py@v2
- name: Remove .gitignore from htmlcov
run: rm -f ./UnitTests/htmlcov/.gitignore
- name: Commit files
run: |
git pull
git config user.name github-actions
git config user.email github-actions@github.com
git add .
git commit -m "Updated coverage.svg"
git push