Skip to content

Merge branch 'main' of github.com:eventdbx/eventdbx-python #4

Merge branch 'main' of github.com:eventdbx/eventdbx-python

Merge branch 'main' of github.com:eventdbx/eventdbx-python #4

Workflow file for this run

name: Publish
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
id-token: write
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y capnproto libcapnp-dev
- name: Install build dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[dev]
- name: Run tests
run: pytest
- name: Build distribution artifacts
run: python -m build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}