diff --git a/.circleci/circle_requirements.txt b/.circleci/circle_requirements.txt deleted file mode 100644 index 87425d9..0000000 --- a/.circleci/circle_requirements.txt +++ /dev/null @@ -1,3 +0,0 @@ -poetry>=1.1.0 -tox>=3.23.1 -tox-poetry>=0.4.0 diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 73cfd54..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,129 +0,0 @@ - -# Python CircleCI 2.0 configuration file -# -# Check https://circleci.com/docs/2.0/language-python/ for more details -# -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 - - - run: - name: install tox dependencies - command: | - pip install --user --quiet --upgrade pip virtualenv==20.7.2 - pip install --user --quiet -r .circleci/circle_requirements.txt - - - run: - name: build sdist and wheels - command: | - # https://github.com/python-poetry/poetry/issues/4210 - poetry config experimental.new-installer false - 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/redistimeseries:edge - steps: - - build_and_test - -on-any-branch: &on-any-branch - filters: - branches: - only: - - /.*/ - tags: - ignore: /.*/ - -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: - 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 f83ec46..416f312 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,5 @@ [![license](https://img.shields.io/github/license/RedisTimeSeries/redistimeseries-py.svg)](https://github.com/RedisTimeSeries/redistimeseries-py) [![PyPI version](https://badge.fury.io/py/redistimeseries.svg)](https://badge.fury.io/py/redistimeseries) -[![CircleCI](https://circleci.com/gh/RedisTimeSeries/redistimeseries-py/tree/master.svg?style=svg)](https://circleci.com/gh/RedisTimeSeries/redistimeseries-py/tree/master) [![GitHub issues](https://img.shields.io/github/release/RedisTimeSeries/redistimeseries-py.svg)](https://github.com/RedisTimeSeries/redistimeseries-py/releases/latest) [![Codecov](https://codecov.io/gh/RedisTimeSeries/redistimeseries-py/branch/master/graph/badge.svg)](https://codecov.io/gh/RedisTimeSeries/redistimeseries-py) [![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/RedisTimeSeries/redistimeseries-py.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/RedisTimeSeries/redistimeseries-py/context:python)