Bump exceptiongroup from 1.2.0 to 1.2.2 #357
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: 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 |