Skip to content

Commit

Permalink
👷 Refactor workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
WiredNerd committed Dec 23, 2023
1 parent 0946ae9 commit 8e97bd4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/mutmut-mutation-test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Mutmut
name: Mutmut Mutation Test

on:
workflow_dispatch:
Expand Down
23 changes: 7 additions & 16 deletions .github/workflows/update-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ on:
concurrency: updates-project

jobs:
pytest-coverage:
name: Pytest Coverage
coverage:
name: Coverage Reports
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -21,31 +21,21 @@ jobs:
run: |
python3 -m pip install --upgrade pip
pip install -r requirements.txt --upgrade
- run: pytest --cov=src --cov-report=json:code-coverage.json
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
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
Expand All @@ -54,3 +44,4 @@ jobs:
with:
add: "mutation-testing-report.json"
pull: "--rebase=true --autostash"
message: ':robot: Update Coverage Report'
1 change: 1 addition & 0 deletions .github/workflows/update-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@ jobs:
with:
add: "src/poodle/__init__.py"
pull: "--rebase=true --autostash"
message: ':robot: Update version to ${{ steps.read_vesion.outputs.value }}'

0 comments on commit 8e97bd4

Please sign in to comment.