Skip to content

👷 Refactoring workflows #1

👷 Refactoring workflows

👷 Refactoring workflows #1

name: Update Coverage Reports
on:
push:
branches:
- main
workflow_dispatch:
concurrency: updates-project
jobs:
pytest-coverage:
name: Pytest Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install Dependencies and Tools
run: |
python3 -m pip install --upgrade pip
pip install -r requirements.txt --upgrade
- run: pytest --cov=src --cov-report=json:code-coverage.json
- name: commit-json-report
if: ${{ github.ref_name == 'main' }}
uses: EndBug/add-and-commit@v9
with:
add: "code-coverage.json"
pull: "--rebase=true --autostash"
- name: artifact-html-report
uses: actions/upload-artifact@v3
with:
name: Coverage Report
path: cov-html
poodle:
name: Mutation Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install Dependencies and Tools
run: |
python3 -m pip install --upgrade pip
pip install -r requirements.txt --upgrade
pip install --editable .
- name: Poodle
run: poodle --report json || true
- name: save-json-report
if: ${{ github.ref_name == 'main' }}
uses: EndBug/add-and-commit@v9
with:
add: "mutation-testing-report.json"
pull: "--rebase=true --autostash"