Skip to content

Start 1.3.0

Start 1.3.0 #37

name: "Update Coverage Badage"
on:
workflow_dispatch:
push:
branches:
- main
jobs:
badage:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: "actions/setup-python@v5"
with:
python-version: "3.12"
- name: "Install and run test"
run: |
python3 -m pip install -r requirements-dev.txt
python3 -m pip install .
- name: "Get coverage"
id: total
run: |
python3 -m coverage run --source=oneliner -m oneliner_tests
echo "total=$(python3 -m coverage report --format=total)" >> $GITHUB_ENV
- name: Create Coverage Badge
uses: schneegans/[email protected]
with:
auth: ${{ secrets.GIST_SECRET }}
gistID: e86b754a309a222ab53215c9d5ff5594
filename: Oneliner-Py_coverage.json
label: Coverage
message: ${{ env.total }}%
minColorRange: 60
maxColorRange: 95
valColorRange: ${{ env.total }}