Skip to content

Bump codecov/codecov-action from 5.3.0 to 5.3.1 in /.github/workflows #186

Bump codecov/codecov-action from 5.3.0 to 5.3.1 in /.github/workflows

Bump codecov/codecov-action from 5.3.0 to 5.3.1 in /.github/workflows #186

Workflow file for this run

---
name: Pylint
on: # yamllint disable-line rule:truthy
pull_request_target:
types:
- opened
- edited
- reopened
- synchronize
workflow_call:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.x"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
# This is the version of the action for setting up Python,
# not the Python version.
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
# You can test your matrix by printing the current
# Python version
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install -r requirements.txt
pip install pylint
- name: Get/Export current directory
run: |
pwd
export PYTHONPATH=$PYTHONPATH:
- name: Check to make sure that the module is in your Python path
run: |
echo $PYTHONPATH
- name: Import test -> try to import a module
run: |
python -c "import os; print(os.getcwd())"
python -c "from lessons.lesson_1.main import LED; " \
"print('LED value -> ', LED.value())"
- name: Version check
run: |
pylint --version
- name: Analysing the code with pylint
run: |
python -c "import os; print(os.getcwd())"
python -m pylint $(git ls-files '*.py') -v