-
Notifications
You must be signed in to change notification settings - Fork 18
41 lines (35 loc) · 1.25 KB
/
valgrind.yml
File metadata and controls
41 lines (35 loc) · 1.25 KB
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
38
39
40
41
name: Valgrind
on:
push:
branches-ignore:
- "dependabot/**"
- "pre-commit-ci-update-config"
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
build_sdist:
name: Valgrind
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
submodules: recursive
persist-credentials: false
- name: Install dependencies
run: |
set -exuo pipefail
sudo apt-get update
sudo apt-get install -y --no-install-recommends valgrind python3.12-dbg python3.12-dev
python3.12-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 --group test
- 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