This repository has been archived by the owner on May 25, 2024. It is now read-only.
build: refactor to use cmake to build package #106
Workflow file for this run
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" | |
pull_request: | |
paths: | |
- "src/**" | |
- "test/**" | |
- "setup.py" | |
jobs: | |
run-test: | |
name: "run tests" | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
os: [ubuntu-latest] | |
include: | |
- { python-version: "pypy-3.10", os: windows-latest } | |
- { python-version: "pypy-3.10", os: macos-latest } | |
- { python-version: "3.8", os: windows-latest } | |
- { python-version: "3.8", os: macos-13 } # https://github.com/actions/setup-python/issues/850 | |
- { 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 dependencies | |
run: | | |
python -m pip install . | |
- name: run tests | |
id: tests | |
run: | | |
python test/all_test.py --ignore benchmark memory |