Skip to content

Commit f4a67b8

Browse files
committed
circleci
1 parent d25d493 commit f4a67b8

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

.circleci/config.yml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,26 @@
1-
1+
# Python CircleCI 2.0 configuration file
2+
version: 2
3+
jobs:
4+
build:
5+
docker:
6+
- image: circleci/python:3.8
7+
8+
working_directory: ~/repo
9+
10+
steps:
11+
# Step 1: obtain repo from GitHub
12+
- checkout
13+
# Step 2: create virtual env and install dependencies
14+
- run:
15+
name: install dependencies
16+
command: |
17+
python3 -m venv venv
18+
. venv/bin/activate
19+
pip install -r requirements.txt
20+
# Step 3: run linter and tests
21+
- run:
22+
name: run tests
23+
command: |
24+
. venv/bin/activate
25+
flake8 --exclude=venv* --statistics
26+
pytest -v --cov=main

0 commit comments

Comments
 (0)