Skip to content

Add flag to do test time augmentation to improve prediction robustnes… #47

Add flag to do test time augmentation to improve prediction robustnes…

Add flag to do test time augmentation to improve prediction robustnes… #47

Workflow file for this run

name: '🐍 PyPI Publish'
on:
push:
branches-ignore:
- '**'
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
- 'v[0-9]+.[0-9]+.[0-9]+rc[0-9]+'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get tag
id: tag
run: echo "tag=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Setup Poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: 1.6.1
- name: Install dependencies
run: |
poetry update
poetry run pip install --upgrade setuptools
- name: Build and publish
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
run: |
poetry version ${{ env.tag }}
sed -i "s/0.0.0/${{ env.tag }}/g" kelp_o_matic/__init__.py
poetry publish --build