pylint changes so that no exit code 30 hopefully #40
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] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
strategy: | |
matrix: | |
python-version: ["3.11"] # Using one version to troubleshoot | |
steps: | |
# Step to check out the repository code | |
- uses: actions/checkout@v4 | |
# Step to set up Python based on the matrix version | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
# Cache pip packages to speed up installs | |
- name: Cache pip packages | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
# Install dependencies, including pylint, with increased timeout | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt --timeout=100 | |
pip install pylint # Ensuring pylint is explicitly installed | |
# Run pylint on Python files | |
- name: Analysing the code with pylint | |
run: | | |
pylint $(git ls-files '*.py') --output=lint.txt || true |