Skip to content

Commit 324cafe

Browse files
authored
Merge pull request #92 from maxmind/horgh/sanitizer
Run AddressSanitizer
2 parents b619010 + 25308bd commit 324cafe

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Run Address Sanitizer
2+
on:
3+
push:
4+
pull_request:
5+
schedule:
6+
- cron: '13 15 * * SUN'
7+
jobs:
8+
build:
9+
name: Address Sanitizer
10+
runs-on: ubuntu-latest
11+
env:
12+
CFLAGS: -fsanitize=address
13+
LDFLAGS: -fsanitize=address
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
with:
18+
submodules: true
19+
20+
- name: Install libmaxminddb
21+
run: sudo apt install libmaxminddb-dev
22+
23+
- name: Set up Python
24+
uses: actions/setup-python@v2
25+
with:
26+
python-version: 3.x
27+
28+
- name: Install dependencies
29+
run: |
30+
python -m pip install --upgrade pip
31+
pip install tox tox-gh-actions
32+
33+
- name: Build
34+
run: python setup.py build
35+
36+
- name: Test with tox
37+
run: MM_FORCE_EXT_TESTS=1 tox

0 commit comments

Comments
 (0)