Adding test instructions to circleci.

This commit is contained in:
Roland 2022-02-20 11:15:49 -07:00
parent f442e94183
commit dbcbe98918
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93

View file

@ -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