Skip to content

Feature/cicd

Feature/cicd #7

Workflow file for this run

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}"