Skip to content

Commit

Permalink
🐛 Using subprocess breaks CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Psychokiller1888 committed Oct 16, 2020
1 parent 3c003df commit 84df4c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions ProjectAliceSK/unittests/unittests.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import os
import subprocess
import sys
from pathlib import Path

import click
import pytest


@click.command()
Expand All @@ -19,9 +19,8 @@ def unittests(skill: str):
sys.exit(0)

print('Found tests to be run, starting')
process: subprocess.CompletedProcess = subprocess.run([str(path), '--cov=./', '--cov-report=xml'], stdout = subprocess.PIPE, stderr = subprocess.PIPE)
ret = 0 if not process.returncode else process.returncode
sys.exit(ret)
result = pytest.main([str(path), '--cov=./', '--cov-report=xml'])
sys.exit(result)


if __name__ == '__main__':
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
setup(
name='projectalice-sk',
author='ProjectAlice',
version='1.8.0',
version='1.8.1',
maintainer='Psychokiller1888',
maintainer_email='[email protected]',
description='Project Alice skill kit',
Expand Down

0 comments on commit 84df4c8

Please sign in to comment.