| 1 | name: Python Package CI |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | pull_request: |
| 6 | |
| 7 | jobs: |
| 8 | build: |
| 9 | runs-on: ${{ matrix.os }} |
| 10 | strategy: |
| 11 | fail-fast: false |
| 12 | matrix: |
| 13 | os: [ubuntu-24.04, windows-2022, macOS-14] |
| 14 | python-version: ["3.8", "3.12"] |
| 15 | |
| 16 | steps: |
| 17 | - uses: actions/checkout@v4 |
| 18 | |
| 19 | - name: Set up Python ${{ matrix.python-version }} |
| 20 | uses: actions/setup-python@v5 |
| 21 | with: |
| 22 | python-version: ${{ matrix.python-version }} |
| 23 | |
| 24 | - name: Setup MSVC |
| 25 | if: runner.os == 'Windows' |
| 26 | uses: ilammy/msvc-dev-cmd@v1 |
| 27 | |
| 28 | - name: Build and install capstone |
| 29 | run: pip install ./bindings/python |
| 30 | |
| 31 | - name: Run tests |
| 32 | run: python ./bindings/python/tests/test_all.py |