Skip to content

bump

bump #30

Workflow file for this run

name: sdk-python
on:
push:
branches:
- main
paths:
- python/**
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Install dependencies
run: uv sync --dev
working-directory: python/
- name: Create .pypirc
run: |
echo "[pypi]" > ~/.pypirc
echo " username = __token__" >> ~/.pypirc
echo " password = ${{ secrets.PYPI_TOKEN }}" >> ~/.pypirc
shell: bash
# WIP: Uncomment the following steps to bump the version and publish the package to PyPI
# - name: Bump version
# run: |
# VERSION=$(uvx --from=toml-cli toml get --toml-path=pyproject.toml project.version)
# echo "Current version: $VERSION"
# NEW_VERSION=$(uv run pysemver bump patch $VERSION)
# echo "New version: $NEW_VERSION"
# working-directory: python/
# - name: Publish package to PyPI
# run: |
# make publish
# working-directory: python/