Skip to content

v0.8.0

v0.8.0 #32

Workflow file for this run

name: PUBLISH
on:
release:
types: [ published ]
jobs:
lintesting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Set up poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: '1.6'
- name: Install dependencies
run: |
poetry install --with=dev
- name: Perform linting
run: |
poetry run flake8 .
poetry run black --check --line-length=120 .
poetry run isort --profile=black --line-length=120 -c .
- name: Perform local testing
run: |
poetry run pytest
deploy:
needs: [ lintesting ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Set up poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: '1.6'
- name: Build and publish
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.BINARYAI_SDK_PYPI_TOKEN }}
run: |
poetry publish --build