code-quality-check

August 21, 2024 ยท View on GitHub

Biosustain's best practices check implementation for github actions.

Usage

name: Code quality
description: Workflow to check if project meets the code quality standards of the Biosustain group

on:
  push:
    branches: main
  pull_request:

jobs:
  code-quality-check:
    name: Code quality check
    uses: biosustain/code-quality-check/.github/workflows/code-quality-check.yml@latest

Alternatively, for better performance one can use specific megalinter flavour.

For example for python project:

name: Code quality
description: Workflow to check if project meets the code quality standards of the Biosustain group

on:
  push:
    branches: main
  pull_request:

jobs:
  code-quality-check:
    name: Code quality check
    uses: biosustain/code-quality-check/.github/workflows/python-code-quality-check.yml@latest