Skip to content

fix: training only when model loading from registry source (#159) #68

fix: training only when model loading from registry source (#159)

fix: training only when model loading from registry source (#159) #68

Workflow file for this run

name: PyPi Publish
on:
push:
tags:
- v*
jobs:
pypi_publish:
if: github.repository == 'numaproj/numalogic-prometheus'
runs-on: ubuntu-latest
environment: production
strategy:
fail-fast: false
matrix:
python-version: [ "3.10" ]
name: Publish to PyPi
steps:
- uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry==1.4.2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry'
- name: Install dependencies
run: |
poetry env use ${{ matrix.python-version }}
poetry install --all-extras
- name: Build dist
run: poetry build
- name: Publish
run: poetry publish -u __token__ -p ${{ secrets.PYPI_PASSWORD }}