Run code under sanitizers in tests #92
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: Test | |
on: [push] | |
jobs: | |
posix: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-13, macos-14] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
cache: pip | |
- run: pip3 install -r requirements.txt | |
- run: python3 test.py | |
linux-arm64: | |
runs-on: buildjet-2vcpu-ubuntu-2204-arm | |
steps: | |
- uses: actions/checkout@v4 | |
- run: pip3 install -r requirements.txt | |
- run: python3 test.py | |
linux-i386: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- run: | | |
sudo dpkg --add-architecture i386 | |
sudo apt-get update | |
sudo apt-get install g++-i686-linux-gnu | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
cache: pip | |
- run: pip3 install -r requirements.txt | |
- run: python3 test.py --cross i386 | |
windows-mingw: | |
runs-on: windows-latest | |
defaults: | |
run: | |
shell: msys2 {0} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: msys2/setup-msys2@v2 | |
with: | |
update: true | |
install: >- | |
mingw-w64-x86_64-gcc | |
mingw-w64-x86_64-python | |
mingw-w64-x86_64-python-yaml | |
mingw-w64-x86_64-python-pywin32 | |
git | |
- run: python3 test.py | |
windows-mingw-i386: | |
runs-on: windows-latest | |
defaults: | |
run: | |
shell: msys2 {0} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: msys2/setup-msys2@v2 | |
with: | |
update: true | |
msystem: mingw32 | |
install: >- | |
mingw-w64-i686-gcc | |
mingw-w64-i686-python | |
mingw-w64-i686-python-yaml | |
mingw-w64-i686-python-pywin32 | |
git | |
- run: python3 test.py --cross-windows i386 | |
windows-msvc: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: msys2/setup-msys2@v2 | |
with: | |
update: true | |
msystem: ucrt64 | |
install: mingw-w64-ucrt-x86_64-gcc | |
- uses: ilammy/msvc-dev-cmd@v1 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
cache: pip | |
- run: pip3 install -r requirements.txt | |
- run: python3 test.py --msvc x86_64 | |
windows-msvc-i386: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: msys2/setup-msys2@v2 | |
with: | |
update: true | |
msystem: ucrt64 | |
install: mingw-w64-ucrt-x86_64-gcc | |
- uses: ilammy/msvc-dev-cmd@v1 | |
with: | |
arch: x86 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
cache: pip | |
- run: pip3 install -r requirements.txt | |
- run: python3 test.py --msvc i386 |