Skip to content

wesker-albert ran some tests #34

wesker-albert ran some tests

wesker-albert ran some tests #34

Workflow file for this run

name: Quality Control
run-name: ${{ github.actor }} ran some tests
on: [pull_request]
permissions:
contents: read
pull-requests: write
jobs:
lint-format-test:
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry==1.5.1
- name: Set up python
uses: actions/setup-python@v4
with:
python-version: "3.11.4"
cache: "poetry"
cache-dependency-path: |
poetry.lock
- name: Install dependencies
run: |
poetry install
- name: Safety check dependencies
run: |
make safety_check
- name: Lint codebase
run: |
make lint
- name: Type check codebase
run: |
make type_check
- name: Validate formatting
run: |
make formatting
- name: Run tests
run: |
make test
- name: Generate coverage report
run: |
make coverage
- name: Format coverage report
uses: irongut/[email protected]
with:
filename: coverage.xml
badge: false
fail_below_min: false
format: markdown
hide_branch_rate: false
hide_complexity: true
indicators: true
output: both
thresholds: "60 80"
- name: Find PR number
uses: jwalton/[email protected]
if: success() || failure()
id: finder
- name: Post coverage report as PR comment
uses: marocchino/[email protected]
if: success() || failure()
with:
number: ${{ steps.finder.outputs.pr }}
recreate: true
path: code-coverage-results.md