mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Add rapydscript tests to CI
This commit is contained in:
parent
82826db233
commit
cb48dcb606
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
@ -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))
|
||||
|
||||
|
@ -72,10 +72,12 @@ def build():
|
||||
|
||||
def test():
|
||||
sanitize_path()
|
||||
cmd = [python_exe(), 'setup.py', 'test']
|
||||
printf(*cmd)
|
||||
p = subprocess.Popen(cmd)
|
||||
raise SystemExit(p.wait())
|
||||
for q in ('test', 'test_rs'):
|
||||
cmd = [python_exe(), 'setup.py', q]
|
||||
printf(*cmd)
|
||||
p = subprocess.Popen(cmd)
|
||||
if p.wait() != 0:
|
||||
raise SystemExit(p.returncode)
|
||||
|
||||
|
||||
def setup_env():
|
||||
|
Loading…
x
Reference in New Issue
Block a user