v0.8.0 #32
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |