Skip to content
Snippets Groups Projects
Commit 46b2c3d0 authored by Tim Repke's avatar Tim Repke
Browse files

upgrade python

parent 8dd0517e
No related branches found
No related tags found
1 merge request!89upgrade python
Pipeline #3004 passed
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment