-
Notifications
You must be signed in to change notification settings - Fork 14
37 lines (32 loc) · 1.12 KB
/
valgrind.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Valgrind
on:
push:
branches-ignore:
- "dependabot/**"
- "pre-commit-ci-update-config"
pull_request:
concurrency:
group: valgrind-${{ github.ref }}
cancel-in-progress: true
jobs:
build_sdist:
name: Valgrind
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install dependencies
run: |
set -exuo pipefail
sudo apt-get update
sudo apt-get install -y --no-install-recommends valgrind python3.10-dbg python3.10-dev python3-distutils
python3.10-dbg -mvenv ./venv-dbg
ln -sf $(pwd)/venv-dbg/bin/python /usr/local/bin/python-pb64
python-pb64 -m pip install --upgrade pip setuptools wheel
python-pb64 -m pip install -r requirements-test.txt
- name: Run valgrind tests
run: |
set -exuo pipefail
CFLAGS="-O0" CIBUILDWHEEL=1 python-pb64 -m pip install -e .
PYTHONMALLOC=malloc valgrind --leak-check=full --show-leak-kinds=definite --errors-for-leak-kinds=definite --error-exitcode=2 $(which python-pb64) -m pytest