Skip to content

Commit 8fe5a37

Browse files
authored
virtualenv fix for pypi cache issue (#28)
disabling circle cache for now
1 parent b40bd8a commit 8fe5a37

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

.circleci/config.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,11 @@ commands:
8585
build_and_test:
8686
steps:
8787
- checkout
88-
- restore_cache: # Download and cache dependencies
89-
keys:
90-
- v1-dependencies-{{ checksum "pyproject.toml" }}
91-
# fallback to using the latest cache if no exact match is found
92-
- v1-dependencies-
9388

9489
- run:
9590
name: install tox dependencies
9691
command: |
92+
/var/opt/redislabs/modules/rg/python3_99.99.99/bin/python3 -m pip install --upgrade pip virtualenv
9793
/var/opt/redislabs/modules/rg/python3_99.99.99/bin/python3 -m pip install -r .circleci/circle_requirements.txt
9894
9995
- run:
@@ -111,13 +107,6 @@ commands:
111107
command:
112108
/var/opt/redislabs/modules/rg/python3_99.99.99/bin/python3 -m tox -e tests
113109

114-
- save_cache:
115-
paths:
116-
- ./.tox
117-
- ~/.cache/pip
118-
- ~/.cache/pypoetry
119-
key: v1-dependencies-{{ checksum "pyproject.toml" }}
120-
121110
jobs:
122111
build:
123112
docker:

tox.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@ exclude =.git,.tox,dist,doc,*/__pycache__/*
1010
# These are the tests that run in CI. They can be run locally in a redislabs/redisgears:edge docker
1111
[testenv:tests]
1212
commands_pre =
13+
pip install --upgrade pip
1314
{envdir}/bin/python -m pip install poetry
1415
{envdir}/bin/python -m poetry install
1516
commands = {envdir}/bin/python -m RLTest --module /var/opt/redislabs/lib/modules/redisgears.so --module-args "Plugin /var/opt/redislabs/modules/rg/plugin/gears_python.so"
1617

1718
[testenv:linters]
1819
commands_pre =
20+
pip install --upgrade pip
1921
{envdir}/bin/python -m pip install poetry
2022
{envdir}/bin/python -m poetry install
2123
commands =

0 commit comments

Comments
 (0)