mirror of
https://gitlab.com/pulsechaincom/staking-deposit-cli.git
synced 2024-12-23 11:57:19 +00:00
32 lines
939 B
YAML
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/
|