diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000000000000000000000000000000000000..2020f9b30b1b251db50680d1aa0848dd7d815fc1
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,21 @@
+stages:
+  - test
+  - build
+
+tests:
+  stage: test
+  services:
+    - name: timescale/timescaledb:latest-pg11
+      alias: pg
+      variables:
+        POSTGRES_PASSWORD: postgres
+        POSTGRES_DB: funkwhale_network_test
+  image: python:3.10-alpine
+  before_script:
+    - apk add poetry
+    - poetry install
+  script:
+    - poetry run pytest
+  variables:
+    DB_DSN: user=postgres password=postgres dbname=funkwhale_network host=db
+