Skip to content

Commit 4337498

Browse files
authored
Run test (#87)
* Run test * Update tests * Updated tests and requirements.txt * Updated tests and requirements.txt
1 parent c0f0339 commit 4337498

File tree

2 files changed

+10
-20
lines changed

2 files changed

+10
-20
lines changed

.circleci/config.yml

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
version: 2
22
jobs:
3-
test_api_and_main:
3+
test_api_and_main_and_upload:
44
docker:
55
- image: circleci/python
66
steps:
@@ -15,25 +15,15 @@ jobs:
1515
cd /home/circleci/project/
1616
pip3 install --user -r requirements.txt
1717
- run:
18-
name: test api
18+
name: test main
1919
command: |
2020
cd /home/circleci/project/
21-
python3 tests/api_tests.py
21+
python3 tests/main_tests.py
2222
- run:
23-
name: test maim
23+
name: test api
2424
command: |
2525
cd /home/circleci/project/
26-
python3 tests/main_tests.py
27-
28-
build:
29-
docker:
30-
- image: circleci/python
31-
steps:
32-
- checkout
33-
- run:
34-
name: init .pypirc
35-
command: |
36-
echo -e "[pypi]" >> ~/.pypirc
26+
python3 tests/api_tests.py
3727
- run:
3828
name: create packages
3929
command: |
@@ -44,11 +34,10 @@ jobs:
4434
command: |
4535
python3 -m pip install --user --upgrade twine
4636
python3 -m twine upload dist/* -u $PYPI_USERNAME -p $PYPI_PASSWORD || echo "Package already exists"
37+
38+
4739
workflows:
4840
version: 2
49-
test_api_and_main:
50-
jobs:
51-
- test_api_and_main
52-
build_and_upload:
41+
test_api_and_main_and_upload:
5342
jobs:
54-
- build
43+
- test_api_and_main_and_upload

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ xmltodict==0.11.0
1212

1313
# Testing
1414
nose2==0.7.3
15+
regex

0 commit comments

Comments
 (0)