From 7fdbfecf5441667a5999457c83605da033aca087 Mon Sep 17 00:00:00 2001
From: Tue Herlau <tuhe@dtu.dk>
Date: Tue, 11 Oct 2022 15:22:28 +0200
Subject: [PATCH] CICD

---
 .gitlab-ci.yml           | 7 ++++---
 src/unlearn/tokenpage.py | 7 +++++++
 2 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7d9010d..2f4c34a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,8 +1,9 @@
-image: python:3.9-buster
+image: ubuntu:latest
 
 before_script:
-  - apt-get update
-  - apt install -y xvfb libssl-dev firefox-dev firefox-geckodriver openssl
+  - apt-get update -y
+  - apt install -y python3-pip python3.10 python-is-python3
+  - apt install -y xvfb libssl-dev firefox firefox-geckodriver openssl
   - openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes
   - pip install -r requirements.txt
 
diff --git a/src/unlearn/tokenpage.py b/src/unlearn/tokenpage.py
index 27c7b22..89e3840 100644
--- a/src/unlearn/tokenpage.py
+++ b/src/unlearn/tokenpage.py
@@ -10,4 +10,11 @@ if __name__ == "__main__":
         os.mkdir(pages)
     with open(pages + "/index.html", 'w') as f:
         f.write("hello world! " + password)
+    from learn_config import LearnConfig
+
+    lc = LearnConfig(password=password)
+    print("Is token valid?", lc.is_token_valid())
+    print("token", lc.cc['access_token'])
+    print("refresh", lc.cc['refresh_token'])
+
 
-- 
GitLab