Skip to content

update python version #17

update python version

update python version #17

Workflow file for this run

name: CI
on:
push:
branches:
- '*'
paths-ignore:
- README.md
pull_request:
branches:
- master
paths-ignore:
- README.md
jobs:
build:
name: Build and install the package
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v4
- name: Pull pybind11
run: git submodule update --init --recursive
- name: Setup Python 3.9
uses: actions/setup-python@v5
with:
python-version: '3.9'
cache: 'pip'
- name: Install build tools
run: pip install wheel setuptools cibuildwheel==2.21.3
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels-${{ runner.os }}
path: ./wheelhouse/*.whl
publish:
name: Publish to pypi
runs-on: ubuntu-latest
needs: build
steps:
- name: Setup Python 3.9
uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Download all dists
uses: actions/download-artifact@v4
with:
path: dist
pattern: wheels-*
merge-multiple: true
- name: Show dist
run: ls dist
- name: Publish package to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/
verbose: true