Skip to content

Add option to serve metrics via http #99

Add option to serve metrics via http

Add option to serve metrics via http #99

Workflow file for this run

name: Publish Python Package
on:
- push
- pull_request
jobs:
build-n-publish:
name: Build and publish Python
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-pip-${{ hashFiles('**/poetry.lock') }}
- name: Install Dependencies
run: |
python -m pip install poetry
poetry self add "poetry-dynamic-versioning[plugin]"
poetry install
- name: Build a binary wheel and a source tarball
run: >-
poetry build
- name: Publish distribution 📦 to PyPI
if: ${{startsWith(github.ref, 'refs/tags')}}
run: poetry publish --username __token__ --password ${{ secrets.PYPI_API_TOKEN }}