Files
Python_CI/CalculatorLibrary/.circlci/config.yml
T
2026-06-02 14:47:34 -04:00

27 lines
677 B
YAML

# 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