GitHub Action that lints a python based repository
jobs:
build:
steps:
- name: Lint
uses: armand-sauzay/actions-python/lint@v1
with:
## example value for github-token provided below
github-token: ${{ secrets.GITHUB_TOKEN }}
parameter | description | required | default |
---|---|---|---|
checkout-repo | Perform checkout as first step of action | false |
true |
pypi-token | PyPI token that can checkout the repository as well as create tags/releases against it. e.g. 'secrets.PYPI_TOKEN' | false |
|
github-token | GitHub token that can checkout the repository. e.g. 'secrets.GITHUB_TOKEN' | true |
${{ github.token }} |
This action is an composite
action.
This action runs pre-commit.
- By default, this action will perform actions/checkout as its first step.
- This expects that
.commitlintrc.yaml
will be present to enforceconventional-commit
.