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.

Add workflow for auto-updating Python dependencies. (#969)

Daniel Pettid93f95f51c0f
diff --git a/.github/workflows/update-dependencies.yml b/.github/workflows/update-dependencies.yml
new file mode 100644
index 0000000000..4fd67b6db1
--- /dev/null
+++ b/.github/workflows/update-dependencies.yml
@@ -0,0 +1,56 @@
+name: 💅 Update
+on:
+ workflow_call:
+ inputs:
+ pdm_args:
+ description: Arguments to pass to pdm
+ type: string
+ default: -u --save-compatible --no-sync --no-self
+ workflow_dispatch:
+ inputs:
+ pdm_args:
+ description: Arguments to pass to pdm
+ type: string
+ default: -u --save-compatible --no-sync --no-self
+ schedule:
+ - cron: '0 8 * * 3' # every Wednesday at 08:00 UTC
+
+jobs:
+ update:
+ name: 👛 Update with PDM
+ runs-on: ubuntu-latest
+ permissions:
+ contents: write # Required for creating PRs
+ pull-requests: write # Required for creating PRs
+ steps:
+ - name: 📰 Checkout
+ uses: actions/checkout@v4
+
+ - name: 📦 Setup PDM
+ uses: pdm-project/setup-pdm@v4
+ with:
+ python-version: 3.x
+ cache: true
+
+ - name: 👚 Update to latest compatible versions
+ run: |
+ # Validate pdm_args to prevent command injection
+ if [[ "${{ inputs.pdm_args }}" =~ [;&|`$(){}[\]] ]]; then
+ echo "Invalid characters in pdm_args"
+ exit 1
+ fi
+ pdm update ${{ inputs.pdm_args || '-u --save-compatible --no-sync --no-self' }}
+
+ - name: 📝 Create pull request
+ uses: peter-evans/create-pull-request@v7
+ with:
+ branch: update-dependencies-${{ github.run_number }}
+ title: 🤖 Update dependencies
+ body: |
+ This PR updates dependencies to their latest compatible versions.
+ This PR was created by the PDM Update Bot.
+ sign-commits: true
+ add-paths: pyproject.toml,pdm.lock
+ commit-message: 🤖 Update dependencies
+ labels: maintenance 🔧
+ draft: always-true