fixing bugs with ci pipeline

This commit is contained in:
GotthardG 2024-12-16 15:38:19 +01:00
parent cf5fff5c60
commit e0e176881b

View File

@ -14,7 +14,7 @@ cache:
- .pip_cache/
before_script: # common setup for every job
- python3.8 -m venv $VIRTUAL_ENV
- python3.12 -m venv $VIRTUAL_ENV
- source $VIRTUAL_ENV/bin/activate
- pip install --upgrade pip
@ -52,7 +52,7 @@ deploy:
- pip install -r requirements.txt
- echo "Starting the application to test startup with SSL..."
- cd backend
- python3.8 -m main # App will start, validate, and exit
- python -m main # App will start, validate, and exit
- echo "Application startup validation completed successfully."
release:
@ -67,7 +67,7 @@ release:
- pip install -r requirements.txt
- bash make_openapi_client.sh
- cd backend/python-client # Navigate to the folder where the package was generated
- python3 -m venv .venv
- python -m venv .venv
- source .venv/bin/activate
- pip install -U pip twine
- twine upload --repository-url ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi dist/*