Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating poetry #38

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/circle_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
poetry==1.1.6
poetry>=1.2.0
tox>=3.23.1
10 changes: 5 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,23 @@ jobs:
command: poetry build
test:
docker:
- image: redislabs/redisgears:edge
- image: redislabs/redisgears:1.2.4
steps:
- checkout

- run:
name: install tox dependencies
command: |
/var/opt/redislabs/modules/rg/python3_99.99.99/bin/python3 -m pip install --upgrade pip virtualenv
/var/opt/redislabs/modules/rg/python3_99.99.99/bin/python3 -m pip install -r .circleci/circle_requirements.txt
/var/opt/redislabs/modules/rg/python3_1.2.4/bin/python3 -m pip install --upgrade pip virtualenv
/var/opt/redislabs/modules/rg/python3_1.2.4/bin/python3 -m pip install -r .circleci/circle_requirements.txt
- run:
name: build sdist and wheels
command: |
/var/opt/redislabs/modules/rg/python3_99.99.99/bin/python3 -m poetry build
/var/opt/redislabs/modules/rg/python3_1.2.4/bin/python3 -m poetry build
- run:
name: run tests
command:
/var/opt/redislabs/modules/rg/python3_99.99.99/bin/python3 -m tox -e tests
/var/opt/redislabs/modules/rg/python3_1.2.4/bin/python3 -m tox -e tests

workflows:
main:
Expand Down
5 changes: 4 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ envlist = tests
[testenv:tests]
commands_pre =
pip install --upgrade pip
{envdir}/bin/poetry config virtualenvs.create false
{envdir}/bin/python -m pip install poetry
{envdir}/bin/python -m pip install RLTest~=0.5.0
{envdir}/bin/python -m poetry install
{envdir}/bin/python -m poetry export --without-hashes --format=requirements.txt -o requirements.txt --dev
{envdir}/bin/python -m pip install -r requirements.txt
{envdir}/bin/python -m pip install gears-cli
bash ./generate_tests_cert.sh
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" -t pytests/ --tls --tls-cert-file ./tests/tls/redis.crt --tls-key-file ./tests/tls/redis.key --tls-ca-cert-file ./tests/tls/ca.crt --tls-passphrase foobar