Skip to content

added workflow

added workflow #12

name: Publish Python distribution to TestPyPI
on:
push:
branches:
- 'main'
- 'feature/wheel_with_setup.py_2'
jobs:
build:
name: Build distribution
runs-on: ubuntu-latest
strategy:
matrix:
pyver: ["3.10"]
steps:
- uses: actions/checkout@v4
with:
ref: 'feature/wheel_with_setup.py_2'
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.pyver }}
- name: Build command 1
run: cmake . -DCMAKE_BUILD_TYPE=Release
- name: Build command 2
run: cmake --build . -j
# Build by poetry
- name: Install pip and setuptools wheel
run: pip install wheel
- name: Install poetry
run: pip install poetry
- name: Build a binary wheel and a source tarball with poetry
run: poetry run python setup.py bdist_wheel
- name: Store the distribution packages
uses: actions/upload-artifact@v3
with:
name: python-package-distributions
path: dist/