Merge pull request #39 from elansteam/database-manager-mypy-issue #10
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: Python Pylint Check | |
on: | |
push: | |
branches: | |
- master # Замените "main" на вашу основную ветку | |
jobs: | |
pylint: | |
name: Run Pylint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.11 | |
- name: Install dependencies | |
run: pip3 install pylint | |
- name: Run pylint | |
run: | | |
echo -e '"""Temp file for Github Action"""' > __init__.py | |
pylint ${PWD} > pylint_output.txt | |
continue-on-error: true | |
- name: Check pylint results | |
run: | | |
cat pylint_output.txt | |
if ! grep -q "Your code has been rated at 10.00/10" pylint_output.txt; then | |
echo "Pylint issues found!" | |
exit 1 | |
fi |