From 32b6705adb9f201e40cd5e7c7bf4c4adfb82df11 Mon Sep 17 00:00:00 2001 From: "Chayim I. Kirshen" Date: Tue, 12 Apr 2022 15:12:05 +0300 Subject: [PATCH] github actions integration --- .circleci/config.yml | 43 ------------------- .../workflow_requirements.txt | 0 .github/workflows/integration.yml | 23 ++++++++++ 3 files changed, 23 insertions(+), 43 deletions(-) delete mode 100644 .circleci/config.yml rename .circleci/circle_requirements.txt => .github/workflow_requirements.txt (100%) create mode 100644 .github/workflows/integration.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index b3e01d2..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,43 +0,0 @@ -version: 2.1 - -orbs: - python: circleci/python@0.2.1 - -commands: - -jobs: - build: - executor: python/default - steps: - - checkout - - run: - name: Install poetry - command: pip install poetry - - run: - name: Build sdist - command: poetry build - test: - docker: - - image: redislabs/redisgears:edge - 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 - - run: - name: build sdist and wheels - command: | - /var/opt/redislabs/modules/rg/python3_99.99.99/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 - -workflows: - main: - jobs: - - build - - test diff --git a/.circleci/circle_requirements.txt b/.github/workflow_requirements.txt similarity index 100% rename from .circleci/circle_requirements.txt rename to .github/workflow_requirements.txt diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml new file mode 100644 index 0000000..a2d8b74 --- /dev/null +++ b/.github/workflows/integration.yml @@ -0,0 +1,23 @@ +name: Integration +on: push + +jobs: + build_and_test: + name: Build and test + runs-on: ubuntu-latest + container: redislabs/redisgears:edge + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: true + + steps: + - uses: actions/checkout@v2 + - name: Insall dependencies + run: | + /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 .github/workflow_requirements.txt + - name: build sdist and wheels + run: | + /var/opt/redislabs/modules/rg/python3_99.99.99/bin/python3 -m poetry build + - name: run tests + run: | + /var/opt/redislabs/modules/rg/python3_99.99.99/bin/python3 -m tox -e tests \ No newline at end of file