From 46b2c3d0e8aab75ecc653d29e7ed3eb731fc33db Mon Sep 17 00:00:00 2001 From: Tim Repke <repke@mcc-berlin.net> Date: Thu, 29 Feb 2024 17:43:27 +0100 Subject: [PATCH] upgrade python --- .gitlab-ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0ec8a65..6bf3629 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -26,7 +26,7 @@ stages: build-job: stage: build - image: python:3.10.6 + image: python:3.11.7 script: - python -V - pip install virtualenv @@ -40,14 +40,14 @@ build-job: test-job1: stage: test - image: python:3.10.6 + image: python:3.11.7 script: - source venv/bin/activate - flake8 --config .flake8 test-job2: stage: test - image: python:3.10.6 + image: python:3.11.7 script: - source venv/bin/activate - which python @@ -83,14 +83,14 @@ deploy-to-production: - git stash # "reset" softly by stashing (in case files changed) - git pull origin production # pull from origin (production branch) - echo "Creating new virtual environment" - - python3.10 -m venv venv + - python3.11 -m venv venv - source venv/bin/activate - which python - python -V - echo "Installing requirements" - pip install -r requirements.txt - echo "Handling migrations" - - nacsos_migrate upgrade --revision head --root-path=/var/www/nacsos2/nacsos-core/venv/lib/python3.10/site-packages/nacsos_data --ini-file=/var/www/nacsos2/nacsos-core/config/alembic.ini + - nacsos_migrate upgrade --revision head --root-path=/var/www/nacsos2/nacsos-core/venv/lib/python3.11/site-packages/nacsos_data --ini-file=/var/www/nacsos2/nacsos-core/config/alembic.ini - sudo chown -R nacsos:nacsos /var/www/nacsos2/nacsos-core - echo "Starting NACSOS-core service" - sudo systemctl start nacsos-core.service -- GitLab