Merge pull request #19 from WiredNerd/dev #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Coverage Reports | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
concurrency: updates-project | |
jobs: | |
coverage: | |
name: Coverage Reports | |
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: pytest | |
run: pytest --cov=src --cov-context=test --cov-report=json:code-coverage.json || true | |
- name: commit-json-report | |
if: ${{ github.ref_name == 'main' }} | |
uses: EndBug/add-and-commit@v9 | |
with: | |
add: "code-coverage.json" | |
pull: "--rebase=true --autostash" | |
message: ':robot: Update Coverage Report' | |
- name: artifact-html-report | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Coverage Report | |
path: cov-html | |
- 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" | |
message: ':robot: Update Coverage Report' |