Fix bcaPrec #52
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: Python build | |
on: | |
push: | |
paths: | |
- '.github/workflows/python-build.yml' | |
- 'python/**' | |
- 'src/**' | |
- 'CMakeLists.txt' | |
- 'setup.py' | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, macos-latest, windows-latest ] | |
python-version: [ '3.7', '3.8', '3.9', '3.10' ] | |
name: Build Pyhton binding on ${{ matrix.os }} for Python ${{ matrix.python-version }} | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Set up Python ${{ matrix.python-version }} environment | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: GCC version report | |
run: gcc --version | |
- name: CMake version report | |
run: cmake --version | |
- name: Python environment report | |
run: python -c "import sys; print(sys.version)" | |
- name: Upgrade pip and install pytest | |
run: | | |
python -m pip install --upgrade pip | |
pip install pytest scikit-learn | |
- name: Pip install | |
run: pip install . | |
- name: Run tests | |
shell: bash | |
run: pytest python/tests/test_* |