Feature/cicd #7
Workflow file for this run
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: Pylint | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
pull_request: | |
branches: | |
- '*' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.x | |
- name: build PQAnalysis | |
run: | | |
pip install pylint | |
pip install pylint-django | |
pip install . | |
- name: Lint with pylint | |
run: | | |
_OUTPUT=$(pylint PQAnalysis --exit-zero) | |
python .github/scripts/parse_pylint.py | tee comment.txt | |
- uses: marocchino/sticky-pull-request-comment@v2 | |
if: (success() || failure()) && github.event.pull_request | |
with: | |
recreate: true | |
path: comment.txt | |
- if: (success() || failure()) && !github.event.pull_request | |
run: | | |
cat comment.txt >> "${GITHUB_STEP_SUMMARY}" | |