Skip to content

Commit aaf027a

Browse files
authored
Merge pull request #122 from zkan/move_test_folder
Move test folder out of main lib
2 parents 63f9032 + ecdca79 commit aaf027a

File tree

15 files changed

+322
-146
lines changed

15 files changed

+322
-146
lines changed

.circleci/config.yml

Lines changed: 12 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,33 @@
1-
# Python CircleCI 2.0 configuration file
2-
#
3-
# Check https://circleci.com/docs/2.0/language-python/ for more details
4-
#
51
version: 2
62
jobs:
73
build:
84
docker:
9-
# specify the version you desire here
10-
# use `-browsers` prefix for selenium tests, e.g. `3.6.1-browsers`
115
- image: circleci/python:3.6.1
12-
13-
# Specify service dependencies here if necessary
14-
# CircleCI maintains a library of pre-built images
15-
# documented at https://circleci.com/docs/2.0/circleci-images/
16-
# - image: circleci/postgres:9.4
17-
18-
working_directory: ~/repo
19-
6+
working_directory: ~/pythainlp
207
steps:
218
- checkout
22-
23-
# Download and cache dependencies
249
- restore_cache:
2510
keys:
26-
- v1-dependencies-{{ checksum "requirements.txt" }}
27-
# fallback to using the latest cache if no exact match is found
11+
- v1-dependencies-{{ .Branch }}-{{ checksum "requirements.txt" }}
2812
- v1-dependencies-
29-
3013
- run:
31-
name: install dependencies
14+
name: Install Dependencies
3215
command: |
3316
python3 -m venv venv
3417
. venv/bin/activate
3518
pip install -r requirements.txt
36-
3719
- save_cache:
3820
paths:
3921
- ./venv
40-
key: v1-dependencies-{{ checksum "requirements.txt" }}
41-
42-
# run tests!
22+
key: v1-dependencies-{{ .Branch }}-{{ checksum "requirements.txt" }}
4323
- run:
44-
name: run tests
24+
name: Run Static Analysis
4525
command: |
4626
. venv/bin/activate
47-
python manage.py test
48-
49-
- store_artifacts:
50-
path: test-reports
51-
destination: test-reports
27+
pip install flake8
28+
make lint
29+
- run:
30+
name: Run Tests
31+
command: |
32+
. venv/bin/activate
33+
make test

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ __pycache__/
99
# Distribution / packaging
1010
.Python
1111
env/
12+
venv/
1213
build/
1314
develop-eggs/
1415
dist/
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)