Skip to content

Commit f7dbfda

Browse files
committed
Migrate to Poetry for dependency management
1 parent 51bb915 commit f7dbfda

6 files changed

Lines changed: 614 additions & 737 deletions

File tree

.circleci/config.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff 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

Pipfile

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)