Skip to content

Commit

Permalink
fix issue with circle ci not finding requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonBlanke committed Nov 20, 2021
1 parent e949f8a commit 921c8ae
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,36 @@ orbs:
jobs:
build-and-test:
executor: python/default

docker:
- image: circleci/python:3.8.5
steps:
- checkout
- python/load-cache
- python/install-deps
- python/save-cache
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "requirements/main.txt" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

- run:
name: Install
command:
python -m pip install --upgrade pip
pip install packaging
pip install pytest
pip install pytest-cov
pip install coveralls
pip install .

pytest --cov=hyperactive/ -p no:warnings

- save_cache:
paths:
- ./venv
key: v1-dependencies-{{ checksum "requirements/main.txt" }}

- run:
name: Test
command:
pytest --cov=hyperactive/ -p no:warnings

workflows:
main:
Expand Down

0 comments on commit 921c8ae

Please sign in to comment.