Skip to content

Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.

Fix/ci clean workspace (#170)

kkkwjx57224a4b2d4c
diff --git a/.github/workflows/_build.yml b/.github/workflows/_build.yml
index 03191b28b..8266ae6eb 100644
--- a/.github/workflows/_build.yml
+++ b/.github/workflows/_build.yml
@@ -74,8 +74,29 @@ jobs:
- name: Install build dependencies
run: uv pip install build setuptools_scm
+ - name: Clean workspace (force ignore dirty)
+ shell: bash
+ run: |
+ git reset --hard HEAD
+ git clean -fd
+ rm -rf openviking/_version.py openviking.egg-info
+ # Ignore uv.lock changes to avoid dirty state in setuptools_scm
+ git update-index --assume-unchanged uv.lock || true
+
+ - name: Debug Git and SCM
+ shell: bash
+ run: |
+ echo "=== Git Describe ==="
+ git describe --tags --long --dirty --always
+ echo "=== Setuptools SCM Version ==="
+ uv run --frozen python -m setuptools_scm
+ echo "=== Git Status (Ignored included) ==="
+ git status --ignored
+ echo "=== Check openviking/_version.py ==="
+ if [ -f openviking/_version.py ]; then cat openviking/_version.py; else echo "Not found"; fi
+
- name: Build sdist
- run: uv run python -m build --sdist
+ run: uv run --frozen python -m build --sdist
- name: Store the distribution packages
uses: actions/upload-artifact@v6
@@ -184,8 +205,29 @@ jobs:
- name: Install build dependencies
run: uv pip install setuptools setuptools_scm pybind11 cmake wheel build
+ - name: Clean workspace (force ignore dirty)
+ shell: bash
+ run: |
+ git reset --hard HEAD
+ git clean -fd
+ rm -rf openviking/_version.py openviking.egg-info
+ # Ignore uv.lock changes to avoid dirty state in setuptools_scm
+ git update-index --assume-unchanged uv.lock || true
+
+ - name: Debug Git and SCM
+ shell: bash
+ run: |
+ echo "=== Git Describe ==="
+ git describe --tags --long --dirty --always
+ echo "=== Setuptools SCM Version ==="
+ uv run --frozen python -m setuptools_scm
+ echo "=== Git Status (Ignored included) ==="
+ git status --ignored
+ echo "=== Check openviking/_version.py ==="
+ if [ -f openviking/_version.py ]; then cat openviking/_version.py; else echo "Not found"; fi
+
- name: Build package (Wheel Only)
- run: uv run python -m build --wheel
+ run: uv run --frozen python -m build --wheel
- name: Install patchelf (Linux)
run: |
@@ -277,8 +319,29 @@ jobs:
- name: Install build dependencies
run: uv pip install setuptools setuptools_scm pybind11 cmake wheel build
+ - name: Clean workspace (force ignore dirty)
+ shell: bash
+ run: |
+ git reset --hard HEAD
+ git clean -fd
+ rm -rf openviking/_version.py openviking.egg-info
+ # Ignore uv.lock changes to avoid dirty state in setuptools_scm
+ git update-index --assume-unchanged uv.lock || true
+
+ - name: Debug Git and SCM
+ shell: bash
+ run: |
+ echo "=== Git Describe ==="
+ git describe --tags --long --dirty --always
+ echo "=== Setuptools SCM Version ==="
+ uv run --frozen python -m setuptools_scm
+ echo "=== Git Status (Ignored included) ==="
+ git status --ignored
+ echo "=== Check openviking/_version.py ==="
+ if [ -f openviking/_version.py ]; then cat openviking/_version.py; else echo "Not found"; fi
+
- name: Build package (Wheel Only)
- run: uv run python -m build --wheel
+ run: uv run --frozen python -m build --wheel
- name: Store the distribution packages
uses: actions/upload-artifact@v6