Added linter_check.yml workflow (#262) #17
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: Lint Check | |
on: | |
# Trigger the workflow on push to main or any pull request. | |
push: | |
branches: | |
- main | |
pull_request: | |
permissions: { } | |
jobs: | |
run-linters: | |
name: Lint | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: read | |
# To report GitHub Actions status checks | |
statuses: write | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Super-linter | |
uses: super-linter/[email protected] # x-release-please-version | |
env: | |
VALIDATE_ALL_CODEBASE: true | |
VALIDATE_PYTHON_FLAKE8: true | |
VALIDATE_PYTHON_RUFF: true | |
# To report GitHub Actions status checks | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |