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
21 changes: 19 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,29 @@
name: Dkany - Pipeline

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

jobs:
check-version:
name: Require Version Bumps
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 2 # Fetch all history for all branches and tags
- name: Fetch main branch
run: git fetch origin main
- name: Check version changed
run: |
OLD_VERSION=$(git show origin/main:src/dkany/__about__.py | head -n1)
NEW_VERSION=$(cat src/dkany/__about__.py)
echo "Old: $OLD_VERSION"
echo "New: $NEW_VERSION"
if [ "$OLD_VERSION" = "$NEW_VERSION" ]; then
echo "❌ Version not bumped. Please run `uv run hatch version $NEW_VERSION` before publishing."
exit 1
fi
Test:
strategy:
matrix:
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ dependencies = [

[dependency-groups]
dev = [
"hatch>=1.14.2",
"mypy>=1.18.2",
"pytest>=8.4.2",
"pytest-cov>=7.0.0",
Expand Down
2 changes: 1 addition & 1 deletion scripts/git_tag.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PACKAGE_VERSION=$(uv run python -m hatch version)
PACKAGE_VERSION=$(uv run hatch version)
version_tag="v${PACKAGE_VERSION}"
echo "Tagging "$PACKAGE_VERSION
# git tag $version_tag
Expand Down
2 changes: 1 addition & 1 deletion src/dkany/__about__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.1.0"
__version__ = "0.1.1"
Loading