-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
47 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,51 @@ | ||
version: 2 | ||
version: 2.1 | ||
orbs: | ||
snyk: snyk/[email protected] | ||
jobs: | ||
test_coco_assistant: | ||
working_directory: ~/project | ||
docker: | ||
- image: circleci/python:3.6.6 | ||
steps: | ||
- checkout | ||
# - restore_cache: | ||
# key: coco-{{ .Branch }} | ||
- run: | ||
name: Setup environment | ||
command: | | ||
sudo chown -R circleci:circleci /usr/local/ | ||
python -m pip install --upgrade pip | ||
python -m pip install Cython numpy | ||
python -m pip install -r requirements-dev.txt | ||
# - save_cache: | ||
# key: coco-{{ .Branch }} | ||
# paths: | ||
# - "/home/circleci/.cache/pip" | ||
- snyk/scan | ||
- run: | ||
name: Runnning tests | ||
command: | | ||
virtualenv venv | ||
. venv/bin/activate | ||
pip install --upgrade pip | ||
pip install Cython numpy==1.16.0 | ||
pip install -r requirements.txt | ||
pip install pytest coverage codacy-coverage | ||
make remove && make clean | ||
make remove && sudo make clean | ||
mkdir test-results | ||
pytest --junitxml=test-results/junit.xml tests/tests.py | ||
coverage run tests/tests.py | ||
coverage report -m | ||
coverage html && coverage xml | ||
python-codacy-coverage -r coverage.xml | ||
- store_test_results: | ||
path: test-results | ||
- store_artifacts: | ||
path: coverage | ||
|
||
|
||
workflows: | ||
version: 2 | ||
test-all: | ||
version: 2.1 | ||
build_test: | ||
jobs: | ||
- test_coco_assistant: | ||
filters: | ||
branches: | ||
only: | ||
- master | ||
- dev | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# project requirements | ||
Cython | ||
matplotlib | ||
numpy | ||
pandas | ||
Pillow>=8.1.1 | ||
git+https://github.com/ashnair1/cocoapi.git#egg=pycocotools&subdirectory=PythonAPI | ||
seaborn | ||
scikit-image | ||
tqdm | ||
|
||
# packaging | ||
setuptools>=40.6.3 | ||
wheel>=0.32.3 | ||
|
||
# testing | ||
requests | ||
pytest | ||
coverage | ||
codacy-coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,5 +13,3 @@ tqdm | |
setuptools>=40.6.3 | ||
wheel>=0.32.3 | ||
|
||
# testing | ||
requests |