Skip to content

Bump pylint from 3.1.0 to 3.2.5 #355

Bump pylint from 3.1.0 to 3.2.5

Bump pylint from 3.1.0 to 3.2.5 #355

Workflow file for this run

name: Basic Project Tests
on:
pull_request:
push:
branches:
- main
jobs:
tests:
name: Perform unit tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install needed tools
run: |
sudo apt update
sudo apt install python3-bpfcc
- name: Setup python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Copy distribution BPF packages
run: cp -av /usr/lib/python3/dist-packages/bcc* $(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")
- name: Install package
run: python -m pip install .
- name: Install development requirements
run: python -m pip install -r requirements_dev.txt
- name: Execute unit tests
run: pytest
linter:
name: Run Linter and check formatting
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install needed tools
run: |
sudo apt update
sudo apt install clang-format python3-bpfcc
- name: Install development requirements
run: python -m pip install -r requirements_dev.txt
- name: Run pylint
run: pylint src tests
- name: Check code format with black
run: black --check --diff src tests
- name: Run clang-format
run: clang-format --dry-run --Werror src/pg_lock_tracer/bpf/*.c