Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix: use pdm-bump plugin and fix shellcheck issues

LearningCircuit445151ea94f4
diff --git a/.github/workflows/version_check.yml b/.github/workflows/version_check.yml
index 383b7f01f8..b4f16e294a 100644
--- a/.github/workflows/version_check.yml
+++ b/.github/workflows/version_check.yml
@@ -45,39 +45,49 @@ jobs:
# Check if version changed in the commits being pushed
if git diff HEAD~1 -G"__version__" -- src/local_deep_research/__version__.py | grep -E '\+.*__version__.*='; then
echo "Version was manually bumped in this push"
- echo "needs_bump=false" >> $GITHUB_OUTPUT
+ echo "needs_bump=false" >> "$GITHUB_OUTPUT"
else
echo "Version not bumped, will auto-bump"
- echo "needs_bump=true" >> $GITHUB_OUTPUT
+ echo "needs_bump=true" >> "$GITHUB_OUTPUT"
fi
+ - name: Set up Python
+ if: steps.check.outputs.needs_bump == 'true'
+ uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
+ with:
+ python-version: '3.11'
+
+ - name: Set up PDM with pdm-bump plugin
+ if: steps.check.outputs.needs_bump == 'true'
+ uses: pdm-project/setup-pdm@94a823180e06fcde4ad29308721954a521c96ed0 # v4
+ with:
+ python-version: '3.11'
+
+ - name: Install pdm-bump plugin
+ if: steps.check.outputs.needs_bump == 'true'
+ run: |
+ pdm self add pdm-bump
+
- name: Auto-bump patch version
if: steps.check.outputs.needs_bump == 'true'
run: |
- # Get current version
- current_version=$(grep -oP '(?<=__version__ = ")[^"]*' src/local_deep_research/__version__.py)
+ # Get current version before bump
+ current_version=$(pdm show --version 2>/dev/null || grep -oP '(?<=__version__ = ")[^"]*' src/local_deep_research/__version__.py)
echo "Current version: $current_version"
- # Split version into parts
- IFS='.' read -ra VERSION_PARTS <<< "$current_version"
- major=${VERSION_PARTS[0]}
- minor=${VERSION_PARTS[1]}
- patch=${VERSION_PARTS[2]}
+ # Bump patch version using pdm-bump
+ pdm bump patch
- # Increment patch version
- new_patch=$((patch + 1))
- new_version="$major.$minor.$new_patch"
+ # Get new version after bump
+ new_version=$(pdm show --version 2>/dev/null || grep -oP '(?<=__version__ = ")[^"]*' src/local_deep_research/__version__.py)
echo "New version: $new_version"
- # Update version file
- sed -i "s/__version__ = \"$current_version\"/__version__ = \"$new_version\"/" src/local_deep_research/__version__.py
-
# Configure git
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
# Commit and push
- git add src/local_deep_research/__version__.py
+ git add -A
git commit -m "chore: auto-bump version to $new_version"
git push