use same env across publish/test scripts

commit_hash:6f97c356b29992caa7046ef5cea81bc107c662ac
This commit is contained in:
i-ts
2026-02-24 18:15:25 +03:00
parent 1d1c1721a1
commit ba988862ac
2 changed files with 7 additions and 5 deletions
+6 -4
View File
@@ -1,4 +1,6 @@
#!/bin/bash
python3.13 -m venv ~/uv
~/uv/bin/pip install uv==0.10.0
scriptDir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
@@ -10,17 +12,17 @@ apiGenDir=$scriptDir/../../api_generator
cd $apiGenDir
echo Executing api_generator with [config = $config] [schemaDir = $schemaDir] [outputDir = $outputDir]
python3 -m api_generator -c $config -s $schemaDir -o $outputDir
python3.13 -m api_generator -c $config -s $schemaDir -o $outputDir
if [[ $1 = "--no-lint" ]]; then
exit 0
fi
echo "Install dependencies"
(cd $scriptDir && uv sync --group dev --no-install-project)
(cd $scriptDir && ~/uv/bin/uv sync --group dev --no-install-project)
echo "Check code"
(cd $scriptDir && uv run ruff check --fix $outputDir)
(cd $scriptDir && ~/uv/bin/uv run ruff check --fix $outputDir)
echo "Format code"
(cd $scriptDir && uv run ruff format $outputDir)
(cd $scriptDir && ~/uv/bin/uv run ruff format $outputDir)
+1 -1
View File
@@ -459,7 +459,7 @@ wheels = [
[[package]]
name = "pydivkit"
version = "32.36.0"
version = "32.38.0"
source = { editable = "." }
[package.dev-dependencies]