flake: check for existance of python project
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 18s
Build and Push Docker Image / deploy-on-green (push) Successful in 8s

This commit is contained in:
2026-01-26 20:28:23 -05:00
parent 635d5d5113
commit c2de1abfd2

View File

@@ -28,12 +28,21 @@
pkgs.deno
];
shellHook = ''
if [ -f .env ]; then
set -a
source .env
set +a
fi
if [ ! -d .venv ]; then
echo "Creating Python virtual environment in .venv"
python3 -m venv .venv
fi
.venv/bin/pip install -r ./app/requirements.txt
source .venv/bin/activate
if compgen -G "app/*.py" > /dev/null; then
.venv/bin/pip install -r ./app/requirements.txt
source .venv/bin/activate
fi
'';
};
});