Skip to content
This repository was archived by the owner on Aug 11, 2020. It is now read-only.

Commit 4872f69

Browse files
BartoszCkikossak
authored andcommitted
Add circleci configuration for automated testing
1 parent fedbeff commit 4872f69

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed

.circleci/config.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
version: 2.1
2+
3+
executors:
4+
python-tox:
5+
docker:
6+
- image: themattrix/tox-base:latest
7+
8+
jobs:
9+
test:
10+
executor: python-tox
11+
steps:
12+
- checkout
13+
- run:
14+
name: Install package requirements
15+
command: make pip-install-dev
16+
- run:
17+
name: Run tests
18+
command: make run-tests
19+
20+
workflows:
21+
version: 2.1
22+
pipeline:
23+
jobs:
24+
- test

Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
1+
PIP=pip3
2+
3+
14
clean-tests:
25
rm -rf .tox paperspace.egg-info
36

47
run-tests: clean-tests
58
tox
9+
10+
pip-update:
11+
$(PIP) install --upgrade pip
12+
$(PIP) install --upgrade setuptools
13+
14+
pip-install-dev: pip-update
15+
$(PIP) install --upgrade -e .[dev]

setup.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,11 @@
5757
entry_points={'console_scripts': [
5858
'paperspace-python = paperspace.main:main',
5959
]},
60+
extras_require={
61+
"dev": [
62+
'tox',
63+
'pytest',
64+
'mock',
65+
],
66+
},
6067
)

0 commit comments

Comments
 (0)