Bump actions/checkout from 3 to 4 #71
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: Code Quality | |
on: | |
push: | |
branches: | |
- "**" | |
- "!master-ci" | |
- "!release" | |
pull_request: | |
branches: | |
- master | |
workflow_dispatch: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.10.0 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: 3.10.0 | |
- name: Install Dependencies | |
run: | | |
python3 -m pip install --upgrade pip | |
pip3 install pylint | |
pip3 install pylint-exit | |
if [ -f requirements.txt ]; then pip3 install -r requirements.txt; fi | |
- name: Lint Project Level | |
run: | | |
find . -path '**/migrations' -prune -false -o -name '*.py' | xargs pylint --rcfile=.github/.pylintrc |