From 4aba0311e7e189ebd3aa3d0e606db7ed2ac91f01 Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Tue, 2 Jun 2026 14:47:34 -0400 Subject: [PATCH] Add config files for circleci --- CalculatorLibrary/.circlci/config.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 CalculatorLibrary/.circlci/config.yml 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