File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,30 +52,29 @@ jobs:
5252 - run : sudo chown -R circleci:circleci /usr/local/lib/python3.7/site-packages
5353
5454 - restore_cache : # ensure this step occurs *before* installing dependencies
55- key : v1-dependencies-{{ .Branch }}-{{ checksum "Pipfile.lock" }}
55+ keys :
56+ - v1-dependencies-{{ checksum "poetry.lock" }}
57+ # fallback to using the latest cache if no exact match is found
58+ - v1-dependencies-
5659
5760 - run :
5861 name : Installing dependencies
5962 command : |
60- sudo pip install pipenv
61- pipenv install --dev
63+ sudo pip install poetry
64+ poetry install
6265
6366 - save_cache :
64- key : v1-dependencies-{{ .Branch }}-{{ checksum "Pipfile .lock" }}
67+ key : v1-dependencies-{{ checksum "poetry .lock" }}
6568 paths :
69+ - " /home/circleci/.cache/pypoetry/virtualenvs"
6670 - " .venv"
67- - " /usr/local/bin"
68- - " /usr/local/lib/python3.7/site-packages"
6971
7072 # Run tests
7173 - run :
7274 name : Run Tests
7375 command : |
7476 mkdir test-results
75- pipenv run pytest --junitxml=test-reports/junit .xml
77+ poetry run pytest --junitxml=test-results/pytest/results .xml
7678
7779 - store_test_results :
7880 path : test-results
79- - store_artifacts :
80- path : test-results
81- destination : tr1
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments