diff --git a/.circleci/config.yml b/.circleci/config.yml index 6554e1f4..d403efcb 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -9,14 +9,24 @@ jobs: # Specify the execution environment. You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub. # See: https://circleci.com/docs/2.0/configuration-reference/#docker-machine-macos-windows-executor docker: - - image: cimg/base:stable + - image: cimg/python:3.8 + environment: + DATABASE_URL: postgresql://postgres@localhost/wrolpi?sslmode=disable + - image: cimg/postgres:12.0 # Add steps to the job # See: https://circleci.com/docs/2.0/configuration-reference/#steps steps: - checkout - run: - name: "Say hello" - command: "echo Hello, World!" + command: "pip install -r requirements.txt" + - run: + command: 'pytest -svv wrolpi modules' + - save_cache: + key: deps9-{{ .Branch }}-{{ checksum "Pipfile.lock" }} + paths: + - ".venv" + - "/usr/local/bin" + - "/usr/local/lib/python3.6/site-packages" # Invoke jobs via workflows # See: https://circleci.com/docs/2.0/configuration-reference/#workflows