Skip to content

app setup

app setup #28

Workflow file for this run

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: Analyzing the code with pylint
run: |
pylint $(git ls-files '*.py')