Skip to content

fix: resolve 5 open issues #39

fix: resolve 5 open issues

fix: resolve 5 open issues #39

Workflow file for this run

name: CI
on:
workflow_call:
push:
branches:
- main
paths-ignore:
- "**/coverage.svg"
pull_request:
branches:
- main
paths-ignore:
- "**/coverage.svg"
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
# - name: Set up bashcov
# uses: infertux/bashcov/.github/actions/set-up-bashcov@master
- name: Install lcov
run: sudo apt-get update && sudo apt-get install -y lcov
# - name: Run tests with coverage
# run: |
# pipenv run pytest --cov --cov-report=lcov
# # bashcov ./commit_changes_test.sh
# # ./merge_lcov.sh src merged.lcov
- name: Coverage Badge
uses: ImBIOS/lcov-coverage-badge@b548b874a74d1c0bb832498745ff98ccb6a81430
with:
file: ./coverage.lcov
- name: Verify Changed files
uses: tj-actions/verify-changed-files@4616eed12cee617b16fa9d0ef524f883d2a48a48
id: verify-changed-files
with:
files: "coverage.svg"
- name: Commit files
if: steps.verify-changed-files.outputs.files_changed == 'true'
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add coverage.svg
git commit -m "ci: update coverage.svg"
- name: Push changes
if: steps.verify-changed-files.outputs.files_changed == 'true'
uses: ad-m/github-push-action@77c5b412c50b723d2a4fbc6d71fb5723bcd439aa
with:
github_token: ${{ secrets.github_token }}
branch: ${{ github.ref }}