Skip to content

Mark project as stable #207

Mark project as stable

Mark project as stable #207

Workflow file for this run

# Ref: https://github.com/wjakob/nanobind_example/blob/master/.github/workflows/pip.yml
name: Run tests
on: [push, pull_request, workflow_dispatch]
jobs:
build:
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.12", "3.14-dev", "3.14t-dev", "pypy3.11"]
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Set min macOS version
if: runner.os == 'macOS'
run: |
echo "MACOSX_DEPLOYMENT_TARGET=10.14" >> $GITHUB_ENV
- name: Build and install
run: |
python -m pip install pytest
pip install --verbose .
- name: Test with pytest
run: |
cd tests
python -m pytest
build_external:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build with external libosxr and install
run: |
sudo apt install -y libsoxr-dev
pip install pytest
pip install --verbose . -C cmake.define.USE_SYSTEM_LIBSOXR=ON
- name: Test with pytest
run: |
cd tests
python -m pytest