Skip to content

Fixed pretty callback name to not use repr by default #21

Fixed pretty callback name to not use repr by default

Fixed pretty callback name to not use repr by default #21

Workflow file for this run

name: Deploy
on:
push:
branches:
- main
paths:
- monitored_ioloop/**
- pyproject.toml
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
jobs:
version-bump:
name: Bump version
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/monitored_ioloop
permissions:
id-token: write
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup git
run: |
git config --global user.name 'Release'
git config --global user.email '[email protected]'
- name: Set up python 3.11
id: setup-python
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction -E uvloop
- name: Bump version
id: version-bump
run: |
echo current_version=$(poetry version -s) >> $GITHUB_OUTPUT
poetry version patch
echo new_version=$(poetry version -s) >> $GITHUB_OUTPUT
- name: Push changes
run: |
git add pyproject.toml
git commit -m "bumping from version ${{ steps.version-bump.outputs.current_version }} to version ${{ steps.version-bump.outputs.new_version }} from workflow"
git push
git tag v${{ steps.version-bump.outputs.new_version }}
git push origin v${{ steps.version-bump.outputs.new_version }}
- name: Build package
run: |
poetry build
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1