Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 21 additions & 15 deletions .github/workflows/new_tag.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Tag on version bump
name: Tag on version bump after rebase

on:
push:
Expand All @@ -10,33 +10,39 @@ permissions:

jobs:
tag:
name: Create tag if version changed
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Get current version from pyproject.toml
id: current
- name: Get version from pyproject.toml
id: get_version
run: |
VERSION=$(grep '^version =' pyproject.toml | cut -d '"' -f2)
VERSION=$(grep '^version' pyproject.toml | cut -d '"' -f2)
echo "Detected version: $VERSION"
echo "version=$VERSION" >> $GITHUB_OUTPUT

- name: Get previous version from main~1
id: previous
- name: Check if tag exists
id: tag_exists
run: |
git checkout HEAD~1
PREV_VERSION=$(grep '^version =' pyproject.toml | cut -d '"' -f2)
echo "version=$PREV_VERSION" >> $GITHUB_OUTPUT

- name: Compare versions and create tag if changed
if: steps.current.outputs.version != steps.previous.outputs.version
TAG="v${{ steps.get_version.outputs.version }}"
echo "Checking for tag: $TAG"
if git rev-parse "$TAG" >/dev/null 2>&1; then
echo "Tag already exists: $TAG"
echo "exists=true" >> $GITHUB_OUTPUT
else
echo "Tag does not exist: $TAG"
echo "exists=false" >> $GITHUB_OUTPUT
fi

- name: Create and push tag
if: steps.tag_exists.outputs.exists == 'false'
run: |
TAG="v${{ steps.get_version.outputs.version }}"
git config user.name "github-actions[bot]"

TAG="v${{ steps.current.outputs.version }}"
echo "Creating tag: $TAG"
git tag "$TAG"
git push origin "$TAG"
30 changes: 30 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
## v0.2.0 (2025-09-23)

### Feat

- allow empty output workables
- init project

### Fix

- search for the common merge ancestor
- add task done on empty output
- move sleep outside of lock
- correct work function expecting tuple as result
- correct test syncqueue types
- correct sync queue generics
- correct uv dependencies
- correct makefile command
- correct library name in docs

### Refactor

- add tag on pull request
- call cz via uv
- bundle worker output
- reduce output to console
- add better typing to workable manager
- improve workable types
- add better typing to worker
- change types of workable
- move uv to PATH an act
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# mPyFlow

[![release: 0.1.0](https://img.shields.io/badge/rel-0.1.0-blue.svg?style=flat-square)](https://github.com/artdotlis/mPyFlow)
[![release: 0.2.0](https://img.shields.io/badge/rel-0.2.0-blue.svg?style=flat-square)](https://github.com/artdotlis/mPyFlow)

[![MIT LICENSE](https://img.shields.io/badge/License-MIT-brightgreen.svg?style=flat-square)](https://choosealicense.com/licenses/mit/)
[![Documentation Status](https://img.shields.io/badge/docs-GitHub-blue.svg?style=flat-square)](https://artdotlis.github.io/mPyFlow/)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "mpyflow"
version = "0.1.0"
version = "0.2.0"
description = """mPyFlow is a library designed to manage
multiprocessing workflows."""
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading