(bump:minor) Feat: Add mechanism for user-site update and auto creating releases (#56)

* move flowsettings.py and launch.py to root

* update docs

* sync sub package versions

* rename launch.py to app.py and make run scripts work with installation package

* add update scripts

* auto version for root package

* rename authors and update doc dir

* Update auto-bump-and-release.yaml to trigger on push to main branch

* latest as branch instead of tag

* pin deps versions

* cache the changelogs
This commit is contained in:
ian_Cin
2024-05-15 16:34:50 +07:00
committed by GitHub
parent eb198e0ff3
commit 654501e01c
20 changed files with 596 additions and 145 deletions

View File

@@ -33,7 +33,7 @@ jobs:
name: unit testing with python ${{ matrix.python-version }}
steps:
- name: Clone the repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
@@ -56,11 +56,9 @@ jobs:
- name: Get cache key
id: get-cache-key
# using tomli so that it works on windows. From python 3.11, this can be switched to the
# built-in tomllib
run: |
pip install tomli
package_version=$(python -c "import tomli; print(tomli.load(open('libs/kotaemon/pyproject.toml', 'rb'))['project']['version'])")
pip install "setuptools-git-versioning>=2.0,<3"
package_version=$(setuptools-git-versioning)
cache_key="${{ runner.os }}-py${{ matrix.python-version }}-v${package_version}"
echo "key=$cache_key" | tee -a ${{ matrix.GITHUB_OUTPUT }}
@@ -82,10 +80,7 @@ jobs:
cache_hit=${{ steps.restore-dependencies.outputs.cache-primary-key == steps.restore-dependencies.outputs.cache-matched-key }}
echo "check=$cache_hit" | tee -a ${{ matrix.GITHUB_OUTPUT }}
- name: Install dependencies if ignore caching or no cache hit
if: |
steps.check-ignore-cache.outputs.check == 'true' ||
steps.check-cache-hit.outputs.check != 'true'
- name: Install additional dependencies (if any)
run: |
python -m pip install --upgrade pip
cd libs/kotaemon