staking-deposit-cli/.circleci/config.yml
2020-05-07 13:38:16 +08:00

32 lines
939 B
YAML

version: 2.1
jobs:
build:
docker:
- image: circleci/python:3.8
steps:
- checkout
- restore_cache:
key: deps1-{{ .Branch }}-{{ checksum "requirements.txt" }}-{{ .Branch }}-{{ checksum "requirements_test.txt" }}
- run:
name: Install requirements
command: |
python3 -m venv venv
. venv/bin/activate
pip install -r requirements.txt
pip install -r requirements_test.txt
- save_cache:
key: deps1-{{ .Branch }}-{{ checksum "requirements.txt" }}-{{ .Branch }}-{{ checksum "requirements_test.txt" }}
paths:
- "venv"
- run:
name: Run tests
command: |
. venv/bin/activate
cd src
python -m pytest .
- store_artifacts:
path: test-reports/
destination: tr1
- store_test_results:
path: test-reports/