Skip to content
This repository has been archived by the owner on Jul 19, 2022. It is now read-only.

Commit

Permalink
fix the automation testing
Browse files Browse the repository at this point in the history
  • Loading branch information
abhaykadam committed Dec 23, 2019
1 parent 2523588 commit 52cd3a4
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 15 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: [2.7, 3.5, 3.6, 3.7]
python-version: [2.7, 3.5, 3.6, 3.7, 3.8]

steps:
- uses: actions/checkout@v1
Expand All @@ -26,5 +26,5 @@ jobs:
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with Nose
run: |
python setup.py test
pip install tox tox-gh-actions
tox
11 changes: 6 additions & 5 deletions example.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@

#To create an item
item = {
"fields":[
{"external_id":"org-name", "values":[{"value":"The Items API sucks"}]}
]
"fields":[
{"external_id":"org-name", "values":[{"value":"The Items API sucks"}]}
]
}
#print c.Application.find(179652)

app_id = c.Application.find(179652)
c.Item.create(app_id, item)

#Undefined and created at runtime example
#print c.transport.GET.user.status()

Expand Down
4 changes: 4 additions & 0 deletions pypodio2/areas.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
from urllib.parse import urlencode


class ApiErrorException(Exception):
pass


class Area(object):
"""Represents a Podio Area"""
def __init__(self, transport):
Expand Down
10 changes: 9 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
from setuptools import setup

extras = {
'test': [
'mock',
'nose',
'tox',
]
}

setup(
name="pypodio2",
version="1.0.0b0",
Expand All @@ -13,7 +21,7 @@
"httplib2",
"future",
],
tests_require=["nose", "mock", "tox"],
extras_require=extras,
test_suite="nose.collector",
classifiers=[
"Development Status :: 4 - Beta",
Expand Down
17 changes: 11 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
[tox]
envlist = py27,py35
envlist = py27,py35,py36,py37,py38

[gh-actions]
python =
2.7: py27
3.5: py35
3.6: py36
3.7: py37
3.8: py38

[testenv]
commands = {envpython} setup.py nosetests
deps =
nose
mock
httplib2
extras = test
commands = {posargs:nosetests}

0 comments on commit 52cd3a4

Please sign in to comment.