This repository has been archived by the owner on May 25, 2024. It is now read-only.
test: add fuzz test #183
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: "Build Test & Unit Test" | |
on: | |
workflow_dispatch: | |
push: | |
paths: | |
- "src/**" | |
- "test/**" | |
- "setup.py" | |
- "CMakeLists.txt" | |
- ".github/workflows/unittest.yml" | |
pull_request: | |
paths: | |
- "src/**" | |
- "test/**" | |
- "setup.py" | |
- "CMakeLists.txt" | |
- ".github/workflows/unittest.yml" | |
jobs: | |
run-test: | |
name: "run tests" | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.9", "3.10", "3.11", "3.12"] | |
os: [ubuntu-latest] | |
include: | |
- { python-version: "3.9", os: windows-latest } | |
- { python-version: "3.9", os: macos-latest } | |
- { python-version: "3.12", os: windows-latest } | |
- { python-version: "3.12", os: macos-latest } | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install py-cjson | |
run: | | |
python -m pip install . | |
- name: run tests | |
id: tests | |
run: | | |
python test/all_test.py --ignore benchmark memory |