From a0ac815859b729a4acf4c52612f4e27b3b22a89b Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Fri, 19 Jan 2024 10:44:39 -0800 Subject: [PATCH] build(config.yml): upgrade python version in docker build test --- .circleci/config.yml | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 8fd8db94ae3..d9a6051dc77 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -92,6 +92,23 @@ jobs: working_directory: ~/project steps: - checkout + - run: + name: Install Python 3.9 + command: | + curl https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh --output miniconda.sh + bash miniconda.sh -b -p $HOME/miniconda + export PATH="$HOME/miniconda/bin:$PATH" + conda init bash + source ~/.bashrc + conda create -n myenv python=3.9 -y + conda activate myenv + python --version + - run: + name: Install Dependencies + command: | + pip install "pytest==7.3.1" + pip install "pytest-asyncio==0.21.1" + # Run pytest and generate JUnit XML report - run: name: Install Docker CLI (In case it's not already installed) command: | @@ -134,12 +151,6 @@ jobs: - run: name: Wait for app to be ready command: dockerize -wait http://localhost:4000 -timeout 1m - - run: - name: Install Dependencies - command: | - pip install "pytest==7.3.1" - pip install "pytest-asyncio==0.21.1" - # Run pytest and generate JUnit XML report - run: name: Run tests command: |