From aa10f43601eb15bf546a0388b96361e5e1b271ea Mon Sep 17 00:00:00 2001 From: Sanskar Jethi Date: Mon, 25 Oct 2021 22:09:29 +0100 Subject: [PATCH] Fix CI testing --- .circleci/config.yml | 25 ++----------------------- robyn/test-requirements.txt | 3 ++- 2 files changed, 4 insertions(+), 24 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index a678ebded..4fc52c0e7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -49,14 +49,13 @@ commands: - ~/.cargo workflows: - sample: # This is the name of the workflow, feel free to change it to better match your workflow. + e2e-testing: # This is the name of the workflow, feel free to change it to better match your workflow. # Inside the workflow, you define the jobs you want to run. # For more details on extending your workflow, see the configuration docs: https://circleci.com/docs/2.0/configuration-reference/#workflows jobs: - rust/lint-test-build: release: true - build-and-test - - python-tests-e2e jobs: lint-test-build: @@ -120,27 +119,6 @@ jobs: - ~/.cargo working_directory: <> - python-tests-e2e: - docker: - - image: cimg/python:3.8 - - steps: - - checkout - - python/install-packages: - pkg-manager: pip - app-dir: ~/project # If you're requirements.txt isn't in the root directory. - pip-dependency-file: requirements.txt # if you have a different name for your requirements file, maybe one that combines your runtime and test requirements. - - - run: - name: Install docker compose - command: | - curl -L https://github.com/docker/compose/releases/download/1.25.3/docker-compose-`uname -s`-`uname -m` > ~/docker-compose - chmod +x ~/docker-compose - sudo mv ~/docker-compose /usr/local/bin/docker-compose - cd ~/project - docker-compose build - docker-compose up - build-and-test: # This is the name of the job, feel free to change it to better match what you're trying to do! # These next lines defines a Docker executors: https://circleci.com/docs/2.0/executor-types/ # You can specify an image from Dockerhub or use one of the convenience images from CircleCI's Developer Hub @@ -170,3 +148,4 @@ jobs: python3 -m venv venv source venv/bin/activate maturin develop + pytest ~/project/integration_tests diff --git a/robyn/test-requirements.txt b/robyn/test-requirements.txt index 5de9171b4..48c677e53 100644 --- a/robyn/test-requirements.txt +++ b/robyn/test-requirements.txt @@ -1,3 +1,4 @@ -pytest +pytest==6.2.5 maturin watchdog +requests==2.26.0