Skip to content

Add PromptSanitizer, docs, tests; bump version #56

Add PromptSanitizer, docs, tests; bump version

Add PromptSanitizer, docs, tests; bump version #56

Workflow file for this run

name: Publish Python Package
on:
push:
branches:
- main
tags:
- 'v*'
paths-ignore:
- 'README.md'
- 'docs/**'
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install build tools and test dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
pip install -e ".[test]"
- name: Run tests
run: pytest -v
- name: Build package
run: python -m build
- name: Publish package
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}