# This is a basic workflow to help you get started with Actions name: Wheels on: workflow_dispatch jobs: build_wheels: name: Build wheels for ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: matrix: os: [ubuntu-latest, windows-latest, macOS-latest] steps: - uses: actions/checkout@v2 - uses: actions/setup-python@v2 name: Install Python with: python-version: '3.8' - name: Install dependencies run: | python -m pip install --upgrade pip python -m pip install wheel python -m pip install numpy>=1.20.0 pip install -r dev-requirements.txt python setup.py install - name: Install cibuildwheel run: python -m pip install cibuildwheel==1.7.2 - name: Build wheels run: python -m cibuildwheel --output-dir wheelhouse env: CIBW_SKIP: "cp27-* cp35-* cp36-* cp39-* pp*" # skip Python 2.7 wheels CIBW_BEFORE_BUILD: "rm -rf build/" - name: Upload wheels run: | python -m pip install twine python -m twine upload -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.PYPI_PASSWORD }} ./wheelhouse/*.whl