Skip to content
Snippets Groups Projects
Verified Commit 1532c733 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Use unprivileged user to run tests in CI.

parent ce40157c
No related branches found
No related tags found
No related merge requests found
Pipeline #236 failed
......@@ -11,11 +11,12 @@ test:
image:
name: python:3.8-buster
before_script:
- apt-get -y update && apt-get -y install postgresql libpq5 libpq-dev libssl-dev
- apt-get -y update && apt-get -y install postgresql libpq5 libpq-dev libssl-dev sudo
- pip install poetry
- adduser --group --disabled-password --gecos "Test User" testuser
script:
- poetry install
- poetry run tox
- sudo -u testuser poetry install
- sudo -u testuser poetry run tox
build_docker:
stage: build
......
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