import subprocess

about = {}
with open("sfsimodels/__about__.py") as fp:
    exec(fp.read(), about)

version = about['__version__']

subprocess.check_call(["git", "tag", version, "-m", "version %s" % version])
subprocess.check_call(["git", "push", "--tags", "origin", "master"])
@@ -10,16 +10,26 @@
 bprocess
+%0Aimport py
 %0A%0Aabout 
@@ -137,16 +137,72 @@
 on__'%5D%0A%0A
+failures = py.test.cmdline.main()%0Aif failures == 0:%0A    
 subproce
@@ -270,16 +270,20 @@
 rsion%5D)%0A
+    
 subproce

test before deployment tag.