diff --git a/.circleci/config.yml b/.circleci/config.yml index 8fd8db94a..d9a6051dc 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: |