Skip to content

Update ci.yml

Update ci.yml #152

name: Pylint opensuse/leap:15.6
on: [push]
jobs:
lint:
runs-on: ubuntu-latest
container: opensuse/leap:15.6
steps:
- name: Install packages
run: zypper ref; zypper in -y git curl tar gzip python39; zypper up -y
- name: Install Python-Pip
run: curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py ; /usr/bin/python3.9 get-pip.py
- name: Update python pip
run: /usr/bin/python3.9 -m ensurepip --upgrade ; /usr/bin/python3.9 -m pip install --upgrade pip
- name: Install python packages
run: /usr/bin/python3.9 -m pip install pylint psutil
- name: Configure Git to ignore ownership check
run: git config --global --add safe.directory /__w/memusage/memusage
- uses: actions/checkout@v3
with:
persist-credentials: true
- name: Analysing the code with pylint
run: /usr/bin/python3.9 -m pylint --rcfile=.pylintrc $(git ls-files '*.py')