From 6c2a1eca876ac5f9fe8bb2cb8c7756d77f407576 Mon Sep 17 00:00:00 2001 From: Chayim Date: Wed, 8 Feb 2023 10:30:28 +0200 Subject: [PATCH] removing circle and ensuring we redirect to active libraries (#177) --- .circleci/circle_requirements.txt | 3 - .circleci/config.yml | 129 ------------------------------ README.md | 1 - 3 files changed, 133 deletions(-) delete mode 100644 .circleci/circle_requirements.txt delete mode 100644 .circleci/config.yml diff --git a/.circleci/circle_requirements.txt b/.circleci/circle_requirements.txt deleted file mode 100644 index ba1b09c..0000000 --- a/.circleci/circle_requirements.txt +++ /dev/null @@ -1,3 +0,0 @@ -poetry>=1.1.8 -tox>=3.23.1 -tox-poetry>=0.4.0 diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 02eb70d..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,129 +0,0 @@ -version: 2.1 - -commands: - - abort_for_docs: - steps: - - run: - name: Avoid tests for docs - command: | - if [[ $CIRCLE_BRANCH == *docs ]]; then - echo "Identifies as documents PR, no testing required" - circleci step halt - fi - - abort_for_noci: - steps: - - run: - name: Ignore CI for specific branches - command: | - if [[ $CIRCLE_BRANCH == *noci ]]; then - echo "Identifies as actively ignoring CI, no testing required." - circleci step halt - fi - - - early_return_for_forked_pull_requests: - description: >- - If this build is from a fork, stop executing the current job and return success. - This is useful to avoid steps that will fail due to missing credentials. - steps: - - run: - name: Early return if this build is from a forked PR - command: | - if [[ -n "$CIRCLE_PR_NUMBER" ]]; then - echo "Nothing to do for forked PRs, so marking this step successful" - circleci step halt - fi - - build_and_test: - steps: - - abort_for_docs - - abort_for_noci - - checkout - - # https://github.com/python-poetry/poetry/issues/4515 - - run: - name: install tox dependencies - command: | - pip install --user --upgrade --quiet pip virtualenv==20.7.2 - pip install --user --quiet -r .circleci/circle_requirements.txt - - - run: - name: install dependencies - command: | - # https://github.com/python-poetry/poetry/issues/4210 - poetry config experimental.new-installer false - poetry install - - - run: - name: build sdist and wheels - command: | - poetry build - - - run: - name: lint - command: | - tox -e linters - - - run: - name: run tests - command: - tox -e cover - - - store_artifacts: - path: test-reports - destination: test-reports - -jobs: - build: - parameters: - python_version: - type: string - default: latest - docker: - - image: circleci/python:<> - - image: redislabs/redisearch:edge - steps: - - build_and_test - -on-any-branch: &on-any-branch - filters: - branches: - only: /.*/ - tags: - only: /.*/ - -on-master: &on-master - filters: - branches: - only: - - master - -# the is to build and test, per commit against all supported python versions -python-versions: &python-versions - matrix: - parameters: - python_version: - - "3.6.9" - - "3.7.9" - - "3.8.9" - - "3.9.4" - - "3.10.0" - - "latest" - -workflows: - version: 2 - commit: - jobs: - - build: - <<: *on-any-branch - <<: *python-versions - - nightly: - triggers: - - schedule: - cron: "0 0 * * *" - <<: *on-master - jobs: - - build diff --git a/README.md b/README.md index a03566f..69c5b14 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,5 @@ [![license](https://img.shields.io/github/license/RediSearch/redisearch-py.svg)](https://github.com/RediSearch/redisearch-py/blob/master/LICENSE) [![PyPI version](https://badge.fury.io/py/redisearch.svg)](https://badge.fury.io/py/redisearch) -[![CircleCI](https://circleci.com/gh/RediSearch/redisearch-py/tree/master.svg?style=svg)](https://circleci.com/gh/RediSearch/redisearch-py/tree/master) [![GitHub issues](https://img.shields.io/github/release/RediSearch/redisearch-py.svg)](https://github.com/RediSearch/redisearch-py/releases/latest) [![Codecov](https://codecov.io/gh/RediSearch/redisearch-py/branch/master/graph/badge.svg)](https://codecov.io/gh/RediSearch/redisearch-py) [![Known Vulnerabilities](https://snyk.io/test/github/RediSearch/redisearch-py/badge.svg?targetFile=pyproject.toml)](https://snyk.io/test/github/RediSearch/redisearch-py?targetFile=pyproject.toml)