Add rapydscript tests to CI

This commit is contained in:
Kovid Goyal 2020-04-02 16:38:20 +05:30
parent 82826db233
commit cb48dcb606
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
3 changed files with 8 additions and 4 deletions

View File

@ -60,4 +60,5 @@ jobs:
- name: Test calibre
run: |
runuser -u ci -- python setup.py test
runuser -u ci -- python setup.py test_rs
chmod +777 .git .git/config

View File

@ -123,6 +123,7 @@ def main():
install_env()
run_python('setup.py test')
run_python('setup.py test_rs')
else:
raise SystemExit('Unknown action: {}'.format(action))

View File

@ -72,10 +72,12 @@ def build():
def test():
sanitize_path()
cmd = [python_exe(), 'setup.py', 'test']
for q in ('test', 'test_rs'):
cmd = [python_exe(), 'setup.py', q]
printf(*cmd)
p = subprocess.Popen(cmd)
raise SystemExit(p.wait())
if p.wait() != 0:
raise SystemExit(p.returncode)
def setup_env():