Skip to content

1 add prompt optimization and local hugging face model support using dspy library #3

1 add prompt optimization and local hugging face model support using dspy library

1 add prompt optimization and local hugging face model support using dspy library #3

name: Upload Python Package
on:
push:
branches:
- main
pull_request:
branches:
- main
types: [opened, reopened, synchronize]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
- name: Configure Poetry
run: poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }}
- name: Build and publish
run: |
poetry version $(git describe --tags --abbrev=0)
poetry publish --build