Skip to content

Commit

Permalink
show drd results
Browse files Browse the repository at this point in the history
  • Loading branch information
juliannguyen4 committed Oct 22, 2024
1 parent 14d97bd commit 5181be1
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/valgrind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@ on:
description: 'Use server release candidate?'
required: true
default: false
massif:
type: boolean
description: 'Use massif for testing memory usage'
tool:
type: choice
options:
- memcheck
- massif
- drd
required: false
default: false
default: memcheck

jobs:
build-manylinux-wheel:
Expand Down Expand Up @@ -63,11 +66,14 @@ jobs:
- run: sudo apt update
- run: sudo apt install valgrind -y

- run: echo VALGRIND_ARGS="--tool=massif --massif-out-file=./${{ env.MASSIF_REPORT_FILE_NAME }}" >> $GITHUB_ENV
if: ${{ inputs.massif }}
- run: echo VALGRIND_ARGS="--tool=${{ inputs.tool }} --massif-out-file=./${{ env.MASSIF_REPORT_FILE_NAME }}" >> $GITHUB_ENV
if: ${{ inputs.tool == 'massif' }}

- run: echo VALGRIND_ARGS="--leak-check=full" >> $GITHUB_ENV
if: ${{ !inputs.massif }}
if: ${{ inputs.tool == 'memcheck' }}

- run: echo VALGRIND_ARGS="--tool=${{ inputs.tool }}" >> $GITHUB_ENV
if: ${{ inputs.tool == 'drd' }}

- run: PYTHONMALLOC=malloc valgrind --error-exitcode=1 ${{ env.VALGRIND_ARGS }} python3 -m pytest -v new_tests/${{ github.event.inputs.test-file }}
working-directory: test
Expand Down

0 comments on commit 5181be1

Please sign in to comment.