Skip to content

v0.8.1

v0.8.1 #22

Workflow file for this run

name: build
on:
workflow_dispatch:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: false
- name: Setup dev dependencies
run: poetry install --only dev
- name: Build package
run: poetry build
- name: Install package with extras
run: |
find dist/*.whl | xargs -I {} pip install {}"[transformers, metrics]"
- name: Test build
run: python -m pytest
- name: Set up Pypi credentials
run: poetry config pypi-token.pypi ${{ SECRETS.PYPI_TOKEN }}
- name: Publish package
run: poetry publish