mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +08:00
chore: development script for syncing Poetry lockfile (#5170)
This commit is contained in:
parent
43c19007e0
commit
e7752e8135
4
.github/workflows/api-tests.yml
vendored
4
.github/workflows/api-tests.yml
vendored
|
@ -107,7 +107,9 @@ jobs:
|
|||
api/poetry.lock
|
||||
|
||||
- name: Poetry check
|
||||
run: poetry check -C api
|
||||
run: |
|
||||
poetry check -C api
|
||||
poetry show -C api
|
||||
|
||||
- name: Install dependencies
|
||||
run: poetry install -C api --with dev
|
||||
|
|
1
.github/workflows/style.yml
vendored
1
.github/workflows/style.yml
vendored
|
@ -100,6 +100,7 @@ jobs:
|
|||
**.yaml
|
||||
**.yml
|
||||
Dockerfile
|
||||
dev/**
|
||||
|
||||
- name: Super-linter
|
||||
uses: super-linter/super-linter/slim@v6
|
||||
|
|
15
dev/sync-poetry
Executable file
15
dev/sync-poetry
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
# rely on `poetry` in path
|
||||
if ! command -v poetry &> /dev/null; then
|
||||
echo "Installing Poetry ..."
|
||||
pip install poetry
|
||||
fi
|
||||
|
||||
# check poetry.lock in sync with pyproject.toml
|
||||
poetry check -C api --lock
|
||||
if [ $? -ne 0 ]; then
|
||||
# update poetry.lock
|
||||
# refreshing lockfile only without updating locked versions
|
||||
poetry lock -C api --no-update
|
||||
fi
|
13
dev/update-poetry
Executable file
13
dev/update-poetry
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
# rely on `poetry` in path
|
||||
if ! command -v poetry &> /dev/null; then
|
||||
echo "Installing Poetry ..."
|
||||
pip install poetry
|
||||
fi
|
||||
|
||||
# refreshing lockfile, updating locked versions
|
||||
poetry update -C api
|
||||
|
||||
# check poetry.lock in sync with pyproject.toml
|
||||
poetry check -C api --lock
|
Loading…
Reference in New Issue
Block a user