Skip to content

Publish wheels to test.pypi.org #95

Publish wheels to test.pypi.org

Publish wheels to test.pypi.org #95

Workflow file for this run

name: Build
on: [push, pull_request]
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-20.04
arch: x86_64
# - os: macos-latest
# arch: arm64
- os: macos-latest
arch: x86_64
- os: windows-latest
arch: AMD64
steps:
- uses: actions/checkout@v4
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_ARCHS: ${{ matrix.arch }}
CIBW_TEST_REQUIRES: pytest
CIBW_TEST_COMMAND: "pytest {project}/tests"
# - uses: actions/upload-artifact@v3
# with:
# path: ./wheelhouse/*.whl
- name: "Publish to test.pypi.org"
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository_url: https://test.pypi.org/legacy/
user: __token__
password: ${{ secrets.TESTPYPI_API_TOKEN }}
verbose: true
packages_dir: ./wheelhouse/