diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..6d2c12d --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,33 @@ +name: Build and upload to PyPI + +on: [push, pull_request] +# workflow_dispatch: +# pull_request: +# push: +# branches: +# - main +# release: +# types: +# - published + +jobs: + build_wheels: + name: Build wheels on ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-22.04, macos-11, windows-2019] + + steps: + - uses: actions/checkout@v4 + + - name: Build wheels + uses: pypa/cibuildwheel@v2.16.2 + env: + # Build wheels for CPython only, skipping PyPy + CIBW_BUILD: "cp*" + CIBW_SKIP: "*-pp*" + + - uses: actions/upload-artifact@v3 + with: + path: ./wheelhouse/*.whl \ No newline at end of file