- build app
- install packages along the way
- build tests
- show code coverage
- create .env file
- create pipenv scripts section
- setup tox
- add circleci config
- test with circleci CLI command
- check coverage
- close gap in coverage
- add badges
Bonus: explain how Python dependencies work
- use circleci Python containers
- use circleci to cache dependencies per their example:
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "requirements.txt" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run:
name: install dependencies
command: |
python3 -m venv venv
. venv/bin/activate
pip install -r requirements.txt
- save_cache:
paths:
- ./venv
key: v1-dependencies-{{ checksum "requirements.txt" }}