Pillow/.github/workflows/test-valgrind.yml

49 lines
1.0 KiB
YAML
Raw Normal View History

2021-02-27 13:22:26 +03:00
name: Test Valgrind
# like the docker tests, but running valgrind only on *.c/*.h changes.
on:
push:
paths:
- "**.c"
- "**.h"
2021-02-27 13:31:43 +03:00
pull_request:
2021-02-27 13:22:26 +03:00
paths:
- "**.c"
- "**.h"
workflow_dispatch:
2021-02-27 13:22:26 +03:00
permissions:
contents: read
2021-02-27 13:22:26 +03:00
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
docker: [
2022-08-02 00:46:41 +03:00
ubuntu-22.04-jammy-amd64-valgrind,
2021-02-27 13:22:26 +03:00
]
2021-10-15 17:30:05 +03:00
dockerTag: [main]
2021-02-27 13:22:26 +03:00
name: ${{ matrix.docker }}
steps:
- uses: actions/checkout@v3
2021-02-27 13:22:26 +03:00
- name: Build system information
run: python3 .github/workflows/system-info.py
- name: Docker pull
run: |
docker pull pythonpillow/${{ matrix.docker }}:${{ matrix.dockerTag }}
2021-02-27 13:52:52 +03:00
- name: Build and Run Valgrind
2021-02-27 13:22:26 +03:00
run: |
# The Pillow user in the docker container is UID 1000
sudo chown -R 1000 $GITHUB_WORKSPACE
docker run --name pillow_container -v $GITHUB_WORKSPACE:/Pillow pythonpillow/${{ matrix.docker }}:${{ matrix.dockerTag }}
sudo chown -R runner $GITHUB_WORKSPACE