first changes for auto save implementation #477
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: | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.x] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install PortAudio | |
run: sudo apt-get install -y portaudio19-dev | |
- name: Install Dependencies and Pylint | |
run: | | |
python -m pip install --upgrade pip | |
pip install pylint | |
pip install --upgrade setuptools wheel | |
pip install -r requirements.txt | |
- name: Analysing the code with pylint and handling exit code | |
id: lint | |
run: | | |
for file in $(git ls-files '*.py') | |
do | |
pylint --disable=import-error,R,wildcard-import,unused-wildcard-import,attribute-defined-outside-init --max-line-length=115 --fail-under=9.0 $file || lint_failed="failed" | |
done | |
if [ "$lint_failed" = "failed" ] | |
then | |
exit 1 | |
fi | |