Skip to content

Fix pipeline

Fix pipeline #3

name: Build and Publish Python SDK Package
on: [push]
permissions:
contents: read
jobs:
publish:
name: Build and publish
runs-on: ubuntu-20.04
defaults:
run:
working-directory: ./agent/python/
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
version: 1.4.2
virtualenvs-create: true
virtualenvs-in-project: false
installer-parallel: true
- name: Build Package
run: poetry build
- name: Config Poetry
run: |
poetry config repositories.pypi https://test.pypi.org/legacy/ # TODO: Remove this line when we are ready to publish to PyPI
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
- name: Publish Package
run: poetry publish