- Notifications
You must be signed in to change notification settings - Fork39
Merge pull request #277 from maxmind/dependabot/uv/ruff-0.14.3#1006
This file contains hidden or 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:Run Address Sanitizer | |
| on: | |
| push: | |
| pull_request: | |
| schedule: | |
| -cron:'13 15 * * SUN' | |
| permissions:{} | |
| jobs: | |
| build: | |
| name:Address Sanitizer | |
| runs-on:ubuntu-latest | |
| env: | |
| ASAN_OPTIONS:strict_string_checks=1:detect_stack_use_after_return=1:check_initialization_order=1:strict_init_order=1:detect_invalid_pointer_pairs=2:detect_leaks=0 | |
| CC:clang | |
| CFLAGS:-fsanitize=address -Wall -Wextra -Wpedantic -Wformat=2 -Walloca -Wvla -Wimplicit-fallthrough -Wcast-qual -Wconversion -Wshadow -Wundef -Wstrict-prototypes -Wswitch-enum -fstack-protector -D_FORTIFY_SOURCE=2 -Werror | |
| LDFLAGS:-fsanitize=address | |
| steps: | |
| -name:Checkout | |
| uses:actions/checkout@v5 | |
| with: | |
| submodules:true | |
| persist-credentials:false | |
| -name:Install the latest version of uv | |
| uses:astral-sh/setup-uv@85856786d1ce8acfbcc2f13a5f3fbd6b938f9f41# 7.1.2 | |
| -name:Install packages | |
| run:| | |
| sudo apt-get update | |
| sudo apt-get -y install libasan6 | |
| -name:Test | |
| run:uv run pytest | |
| env: | |
| CFLAGS:"-Werror -Wall -Wextra" | |
| LD_PRELOAD:libasan.so.6 | |
| MAXMINDDB_REQUIRE_EXTENSION:1 | |
| MM_FORCE_EXT_TESTS:1 |