Skip to content

Bump pypa/gh-action-pypi-publish from 1.8.6 to 1.8.11 #25

Bump pypa/gh-action-pypi-publish from 1.8.6 to 1.8.11

Bump pypa/gh-action-pypi-publish from 1.8.6 to 1.8.11 #25

Workflow file for this run

name: Valgrind
on:
pull_request:
branches:
- master
workflow_dispatch:
defaults:
run:
shell: bash
jobs:
pre_job:
# continue-on-error: true # Uncomment once integration is finished
runs-on: ubuntu-latest
# Map a step output to a job output
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@master
with:
# All of these options are optional, so you can remove them if you are happy with the defaults
cancel_others: 'true'
do_not_skip: '["pull_request", "workflow_dispatch", "schedule"]'
build:
name: Valgrind
needs: pre_job
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
with:
submodules: false
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies on ubuntu
run: |
sudo apt-get update
sudo apt-get install -y valgrind
- name: Install python packages
run: |
python -m pip install --upgrade pip setuptools wheel pytest
- name: Install
run: |
# temp fix for Valgrind issue with later versions
pip install scipy==1.9.1
CMAKE_ARGS="-DCMAKE_BUILD_TYPE=Debug" pip install . -v
- name: Test
run: |
cd tests/phik_python
PYTHONMALLOC=malloc valgrind --leak-check=yes --track-origins=yes --log-file=valgrind-log.txt python -m pytest test_phik.py