mirror of
https://gitlab.com/pulsechaincom/staking-deposit-cli.git
synced 2024-12-23 11:57:19 +00:00
96200d76ae
* Move tests to /tests * Rename `src` to `eth2deposit` * Fix path * Fix path and move eth2deposit/utils/credentials.py -> eth2deposit/credentials.py * Update Makefile * Kick CI cache * Fix package setup * Fix path back * PR feedback from Carl
57 lines
1.6 KiB
YAML
57 lines
1.6 KiB
YAML
version: 2.1
|
|
jobs:
|
|
build:
|
|
docker:
|
|
- image: circleci/python:3.8
|
|
working_directory: ~/repo
|
|
steps:
|
|
- checkout
|
|
- restore_cache:
|
|
key: deps1-{{ arch }}-{{ .Branch }}-{{ checksum "requirements.txt" }}-{{ checksum "requirements_test.txt" }}-{{ checksum "setup.py" }}
|
|
- run:
|
|
name: Install requirements
|
|
command: make build_test
|
|
- save_cache:
|
|
key: deps1-{{ arch }}-{{ .Branch }}-{{ checksum "requirements.txt" }}-{{ checksum "requirements_test.txt" }}-{{ checksum "setup.py" }}
|
|
paths:
|
|
- ./venv
|
|
pytest:
|
|
docker:
|
|
- image: circleci/python:3.8
|
|
working_directory: ~/repo
|
|
steps:
|
|
- checkout
|
|
- restore_cache:
|
|
key: deps1-{{ arch }}-{{ .Branch }}-{{ checksum "requirements.txt" }}-{{ checksum "requirements_test.txt" }}-{{ checksum "setup.py" }}
|
|
- run:
|
|
name: Run tests
|
|
command: make test
|
|
- store_artifacts:
|
|
path: test-reports/
|
|
destination: tr1
|
|
- store_test_results:
|
|
path: test-reports/
|
|
lint:
|
|
docker:
|
|
- image: circleci/python:3.8
|
|
working_directory: ~/repo
|
|
steps:
|
|
- checkout
|
|
- restore_cache:
|
|
key: deps1-{{ arch }}-{{ .Branch }}-{{ checksum "requirements.txt" }}-{{ checksum "requirements_test.txt" }}-{{ checksum "setup.py" }}
|
|
- run:
|
|
name: Run linter
|
|
command: make lint
|
|
|
|
workflows:
|
|
version: 2.1
|
|
all_test:
|
|
jobs:
|
|
- build
|
|
- pytest:
|
|
requires:
|
|
- build
|
|
- lint:
|
|
requires:
|
|
- build
|