diff --git a/CalculatorLibrary/.circlci/config.yml b/CalculatorLibrary/.circlci/config.yml new file mode 100644 index 0000000..311e92e --- /dev/null +++ b/CalculatorLibrary/.circlci/config.yml @@ -0,0 +1,26 @@ +# Python CircleCI 2.0 configuration file +version: 2 +jobs: + build: + docker: + - image: circleci/python:3.7 + + working_directory: ~/repo + + steps: + # Step 1: obtain repo from gitea + - checkout + # Step 2: create virtual environment and install dependencies + - run: + name: install dependencies + command: | + python3 -m venv venv + . venv/bin/activate + pip install -r requirements.txt + # Step 3: run linter and tests + - run: + name: run tests + command: | + . venv/bin/activate + flake8 --exclude=venv* --statistics + pytest -v --cov=calculator