Add config files for circleci

This commit is contained in:
chris committed 2026-06-02 14:47:34 -04:00
1 parent 2e854cbeb6
commit 4aba0311e7
1 file changed
+26
+26
View File
@@ -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