Dummy PR for GHA test #17
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Memory Leaks | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- 'src/**' | |
- '.github/workflows/memory_leak.yml' | |
pull_request: | |
branches: | |
- master | |
paths: | |
- 'src/**' | |
- '.github/workflows/memory_leak.yml' | |
env: | |
PYTHONUNBUFFERED: "1" | |
FORCE_COLOR: "1" | |
PYTHONIOENCODING: "utf8" | |
jobs: | |
memory-leaks: | |
name: Check for memory leaks and errors | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.12 | |
- name: Install Pytest | |
run: | | |
pip install pytest pytest-asyncio pytest-memray typing_extensions | |
shell: bash | |
- name: Build PyAwaitable | |
run: pip install . | |
- name: Build PyAwaitable Test Package | |
run: pip install setuptools wheel && pip install tests/extension/ --no-build-isolation | |
- name: Install Valgrind | |
run: sudo apt-get update && sudo apt-get -y install valgrind | |
- name: Run tests with Memray tracking | |
run: pytest --enable-leak-tracking -W error --stacks=50 --native | |
- name: Run tests with Valgrind | |
run: valgrind --suppressions=valgrind-python.supp --error-exitcode=1 pytest -x |