Skip to content

builder

builder #43

Workflow file for this run

name: Run Tests
run-name: builder
on:
pull_request:
branches: [ master ]
workflow_dispatch:
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements-ci.txt
- name: Run tests
run: |
coverage run -m unittest
coverage report --fail-under=85
coverage json -o cov.json
- name: Add coverage to job summary
shell: bash
run: |
total=$(jq '.totals.percent_covered' cov.json)
{
echo "### Test coverage"
echo ""
echo "| Metric | Percent |"
echo "|--------|---------|"
printf "| Total | %.2f%% |\n" "$total"
} >> "$GITHUB_STEP_SUMMARY"