Skip to content

About

Demo a Python project with pipenv, flake8, tox, CircleCi, and CodeCov

Resources

Stars

0 stars

Watchers

2 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

Repository files navigation

DerbyPy Project Extras Demo

CircleCI codecov

Demo Steps

  1. build app
  2. install packages along the way
  3. build tests
  4. show code coverage
  5. create .env file
  6. create pipenv scripts section
  7. setup tox
  8. add circleci config
  9. test with circleci CLI command
  10. check coverage
  11. close gap in coverage
  12. add badges

Bonus: explain how Python dependencies work

Improvements

  • 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" }}

About

Demo a Python project with pipenv, flake8, tox, CircleCi, and CodeCov

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages