From 1370b68525e958ff3cfd1ba6c47e1b07aa1b9f72 Mon Sep 17 00:00:00 2001 From: Sattvik Chakravarthy Date: Wed, 20 Nov 2024 11:19:36 +0530 Subject: [PATCH] fix: backend-sdk-testing --- .circleci/config_continue.yml | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/.circleci/config_continue.yml b/.circleci/config_continue.yml index 4a2e7635..4fb103b4 100644 --- a/.circleci/config_continue.yml +++ b/.circleci/config_continue.yml @@ -30,32 +30,20 @@ jobs: - slack/status test-backend-sdk-testing: docker: - - image: rishabhpoddar/supertokens_node_driver_testing_node_20 + - image: python:<< parameters.python-version >> resource_class: large parameters: cdi-version: type: string fdi-version: type: string + python-version: + type: string steps: - checkout - - run: update-alternatives --install "/usr/bin/java" "java" "/usr/java/jdk-15.0.1/bin/java" 2 - - run: update-alternatives --install "/usr/bin/javac" "javac" "/usr/java/jdk-15.0.1/bin/javac" 2 + - run: apt update && apt install -y jq + - run: (cd .circleci/ && ./installJava.sh) - run: echo "127.0.0.1 localhost.org" >> /etc/hosts - - run: - name: Install latest Python and dependencies - command: | - apt-get update - apt-get install -y software-properties-common lsof - add-apt-repository -y ppa:deadsnakes/ppa - apt-get update - DEBIAN_FRONTEND=noninteractive apt-get install -y python3.11 python3-pip python3.11-dev libffi-dev - update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1 - update-alternatives --set python3 /usr/bin/python3.11 - python3 --version - python3 -m pip install "cython<3.0.0" wheel - python3 -m pip install --upgrade pip setuptools - python3 -m pip install "pyyaml==5.4.1" --no-build-isolation - run: python3 -m pip install -r dev-requirements.txt - run: (cd .circleci/ && ./doBackendSDKTests.sh << parameters.cdi-version >> << parameters.fdi-version >>) - slack/status @@ -331,6 +319,7 @@ workflows: parameters: cdi-version: placeholder fdi-version: placeholder + python-version: ['3.8', '3.13'] - test-website-fastapi: requires: - test-dev-tag-as-not-passed