From b16f7ba3025ebc9bc0a1ff6721419387d21d885b Mon Sep 17 00:00:00 2001 From: Greg Gauthier Date: Fri, 23 Oct 2020 09:57:57 +0100 Subject: [PATCH 1/9] Add .circleci/config.yml --- .circleci/config.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..eb455bf --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,22 @@ +version: 2.1 + +orbs: + python: circleci/python@0.2.1 + +jobs: + build-and-test: + executor: python/default + steps: + - checkout + - python/load-cache + - python/install-deps + - python/save-cache + - run: + command: ./manage.py test + name: Test + +workflows: + main: + jobs: + - build-and-test + From 9b62465a918ac0baee6311915474b0db58d4e8a6 Mon Sep 17 00:00:00 2001 From: Greg Gauthier Date: Fri, 23 Oct 2020 12:46:04 +0100 Subject: [PATCH 2/9] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index eb455bf..3791fff 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -12,7 +12,7 @@ jobs: - python/install-deps - python/save-cache - run: - command: ./manage.py test + command: ./manage.py pytest name: Test workflows: From 95e08df3d3c90b9bf13c9aa26369488d9626b321 Mon Sep 17 00:00:00 2001 From: Greg Gauthier Date: Fri, 23 Oct 2020 12:50:28 +0100 Subject: [PATCH 3/9] Add .circleci/config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 3791fff..c55044f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -12,7 +12,7 @@ jobs: - python/install-deps - python/save-cache - run: - command: ./manage.py pytest + command: pipenv run pytest name: Test workflows: From 11e38348215d6cff99796296510e4b97a7f22b75 Mon Sep 17 00:00:00 2001 From: Greg Gauthier Date: Fri, 23 Oct 2020 13:00:41 +0100 Subject: [PATCH 4/9] Add .circleci/config.yml --- .circleci/config.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index c55044f..c128e59 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -12,9 +12,10 @@ jobs: - python/install-deps - python/save-cache - run: - command: pipenv run pytest - name: Test - + command: | + sudo pip install pipenv + pipenv install + pipenv run pytest workflows: main: jobs: From a22b9967279105fc773db611d8fc15cc8ff83d4d Mon Sep 17 00:00:00 2001 From: Greg Gauthier Date: Fri, 23 Oct 2020 13:05:05 +0100 Subject: [PATCH 5/9] circleci seems to want to install requirements the old way. We'll let him install pipenv this way, and do the rest from there --- .circleci/config.yml | 1 - requirements.txt | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 requirements.txt diff --git a/.circleci/config.yml b/.circleci/config.yml index c128e59..bdc2b46 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -13,7 +13,6 @@ jobs: - python/save-cache - run: command: | - sudo pip install pipenv pipenv install pipenv run pytest workflows: diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..c1bc680 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +pipenv \ No newline at end of file From 207bd14d8fb128e310cafc0de8716628653a6c73 Mon Sep 17 00:00:00 2001 From: Greg Gauthier Date: Fri, 23 Oct 2020 13:10:19 +0100 Subject: [PATCH 6/9] install the python for the venv --- .circleci/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index bdc2b46..3795429 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -13,6 +13,7 @@ jobs: - python/save-cache - run: command: | + pipenv --python 3.8 pipenv install pipenv run pytest workflows: From 61e49edb4c706fbe81d577718c3b1376e46849bc Mon Sep 17 00:00:00 2001 From: Greg Gauthier Date: Fri, 23 Oct 2020 13:13:53 +0100 Subject: [PATCH 7/9] install the python for the venv --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 3795429..e7e66e5 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -13,7 +13,7 @@ jobs: - python/save-cache - run: command: | - pipenv --python 3.8 + python3 --version pipenv install pipenv run pytest workflows: From a12f97d0d07443f9212bb7ab8d01be2473457b0d Mon Sep 17 00:00:00 2001 From: Greg Gauthier Date: Fri, 23 Oct 2020 13:17:22 +0100 Subject: [PATCH 8/9] remove specific python version requirement. CircleCI is already on 3.9, so that's good enough for now --- .circleci/config.yml | 1 - Pipfile | 3 --- 2 files changed, 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index e7e66e5..bdc2b46 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -13,7 +13,6 @@ jobs: - python/save-cache - run: command: | - python3 --version pipenv install pipenv run pytest workflows: diff --git a/Pipfile b/Pipfile index 0ac07b6..19612ab 100644 --- a/Pipfile +++ b/Pipfile @@ -8,6 +8,3 @@ pytest = "*" [packages] pytest = "*" - -[requires] -python_version = "3.8" \ No newline at end of file From aa021d117c3241b8a61c170f86ef938ef046b10c Mon Sep 17 00:00:00 2001 From: Greg Gauthier Date: Fri, 23 Oct 2020 13:19:08 +0100 Subject: [PATCH 9/9] add verbose logging because reasons --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index bdc2b46..cd5d04f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -14,7 +14,7 @@ jobs: - run: command: | pipenv install - pipenv run pytest + pipenv run pytest -vv workflows: main: jobs: