123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- version: 2.1
- parameters:
- go-version:
- type: string
- default: 1.16.2
- jobs:
- build-and-test-py37:
- docker:
- - image: circleci/python:3.7.10
- steps:
- - checkout
- - restore_cache:
- keys:
- - py37-v1-{{ checksum "requirements.txt" }}-{{ checksum "requirements-dev.txt" }}
- - v1-{{ checksum "requirements.txt" }}-{{ checksum "requirements-dev.txt" }}
- - run: |
- wget https://golang.org/dl/go<< pipeline.parameters.go-version >>.linux-amd64.tar.gz -O go.tar.gz
- tar -C ~/ -xzf go.tar.gz
- echo "export PATH=~/go/bin:$PATH" >> $BASH_ENV
- - run: pip install -r requirements.txt
- - run: pip install -r requirements-dev.txt
- - save_cache:
- key: py37-v1-{{ checksum "requirements.txt" }}-{{ checksum "requirements-dev.txt" }}
- paths:
- - '~/.cache/pip'
- - run:
- command: pip install -e . --install-option="--buildgo"
- name: setup
- - run:
- command: pytest --cov=hivemind ./tests
- name: tests
- - run:
- command: codecov
- name: codecov
- build-and-test-py38:
- docker:
- - image: circleci/python:3.8.1
- steps:
- - checkout
- - restore_cache:
- keys:
- - py38-v1-{{ checksum "requirements.txt" }}-{{ checksum "requirements-dev.txt" }}
- - run: |
- wget https://golang.org/dl/go<< pipeline.parameters.go-version >>.linux-amd64.tar.gz -O go.tar.gz
- tar -C ~/ -xzf go.tar.gz
- echo "export PATH=~/go/bin:$PATH" >> $BASH_ENV
- - run: pip install -r requirements.txt
- - run: pip install -r requirements-dev.txt
- - save_cache:
- key: py38-v1-{{ checksum "requirements.txt" }}-{{ checksum "requirements-dev.txt" }}
- paths:
- - '~/.cache/pip'
- - run:
- command: pip install -e . --install-option="--buildgo"
- name: setup
- - run:
- command: pytest --cov=hivemind ./tests
- name: tests
- - run:
- command: codecov
- name: codecov
- build-and-test-py39:
- docker:
- - image: circleci/python:3.9.1
- steps:
- - checkout
- - restore_cache:
- keys:
- - py39-v1-{{ checksum "requirements.txt" }}-{{ checksum "requirements-dev.txt" }}
- - run: |
- wget https://golang.org/dl/go<< pipeline.parameters.go-version >>.linux-amd64.tar.gz -O go.tar.gz
- tar -C ~/ -xzf go.tar.gz
- echo "export PATH=~/go/bin:$PATH" >> $BASH_ENV
- - run: pip install -r requirements.txt
- - run: pip install -r requirements-dev.txt
- - save_cache:
- key: py39-v1-{{ checksum "requirements.txt" }}-{{ checksum "requirements-dev.txt" }}
- paths:
- - '~/.cache/pip'
- - run:
- command: pip install -e . --install-option="--buildgo"
- name: setup
- - run:
- command: pytest --cov=hivemind ./tests
- name: tests
- - run:
- command: codecov
- name: codecov
- workflows:
- main:
- jobs:
- - build-and-test-py37
- - build-and-test-py38
- - build-and-test-py39
|