-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Patrick Kennel
committed
Jul 2, 2020
1 parent
f1d2895
commit 13a71b7
Showing
2 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
version: 2.1 | ||
|
||
orbs: | ||
python: circleci/[email protected] | ||
|
||
jobs: | ||
test-and-code-analysis: | ||
docker: | ||
- image: circleci/python:3.8.3 | ||
steps: | ||
- checkout | ||
- run: sudo chown -R circleci:circleci /usr/local/bin | ||
- run: sudo chown -R circleci:circleci /usr/local/lib/python3.8/site-packages | ||
- restore_cache: | ||
key: deps9-{{ .Branch }}-{{ checksum "itsybitsy/setup.py" }} | ||
- run: | ||
command: | | ||
python3 -m venv .venv | ||
source .venv/bin/activate | ||
pip install -r requirements.txt | ||
- save_cache: | ||
key: deps9-{{ .Branch }}-{{ checksum "itsybitsy/setup.py" }} | ||
paths: | ||
- ".venv" | ||
- "/usr/local/bin" | ||
- "/usr/local/lib/python3.8/site-packages" | ||
- run: | ||
command: | | ||
source .venv/bin/activate | ||
make test | ||
- run: | ||
command: | | ||
source .venv/bin/activate | ||
make coverage | ||
- run: | ||
command: | | ||
source .venv/bin/activate | ||
make analyze | ||
workflows: | ||
main: | ||
jobs: | ||
- test-and-code-analysis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
test: | ||
@pytest | ||
|
||
coverage: | ||
@pytest --cov --cov-fail-under=70 --cov-config .coveragerc | ||
|
||
analyze: | ||
@prospector --profile .prospector.yaml |