Skip to content

add tests

add tests #63

Workflow file for this run

name: Build
on:
pull_request:
branches:
- "**"
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
# os: [ubuntu-latest, macos-13, macos-14] currently only works on Linux
os: [ubuntu-latest]
steps:
- name: Checkout the repository
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Build wheels
uses: pypa/[email protected]
run_tests:
name: Run tests locally
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Build locally
run: python -m build
- name: Install locally
run: pip install .[test]
- name: Run tests
run: pytest