Skip to content

add tests

add tests #69

Workflow file for this run

name: Build
on:
pull_request:
branches:
- "**"
jobs:
build_wheels:
name: Build wheels
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Build wheels
uses: pypa/[email protected]
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: cibw-wheels-ubuntu-latest
path: wheelhouse/*.whl
run_tests:
name: Run tests locally
runs-on: ubuntu-latest
needs: build_wheels
steps:
- name: Checkout the repository
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Download artifacts
uses: actions/download-artifact@v4
with:
pattern: cibw-*
path: dist
merge-multiple: true
- name: LS
run: ls -laR
- name: Install wheel
run: pip install wheel
- name: Install locally
run: pip install dist/swisspair*cp312*manylinux*x86_64*.whl[test]
- name: Run tests
run: pytest