Skip to content

Commit f9cb3a3

Browse files
committed
CI: Make test command work with recent setuptools.
1 parent 41dd7eb commit f9cb3a3

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ jobs:
114114
LDFLAGS: ${{ env.CFLAGS_LTO }}
115115

116116
- name: Run tests
117-
run: python setup.py test
117+
run: python -m lupa.tests.__main__
118118
continue-on-error: ${{ contains(matrix.python-version, 'pypy') }}
119119
env:
120120
SETUP_OPTIONS: ${{ !contains(matrix.lua-version, 'luajit') && (contains(matrix.lua-version, 'bundle') && '--use-bundle' || '--no-luajit') || '' }}

appveyor.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ build_script:
3737

3838
test: off
3939
test_script:
40-
- python -u setup.py test
40+
- python -u -m lupa.tests.__main__
4141

4242
artifacts:
4343
- path: dist/*.whl

lupa/tests/__main__.py

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
if __name__ == '__main__':
2+
import unittest
3+
from . import suite
4+
unittest.TextTestRunner(verbosity=2).run(suite())

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ passenv=
1717
SETUP_OPTIONS
1818
commands=
1919
{envpython} setup.py --with-cython {env:SETUP_OPTIONS:} build install
20-
{envpython} setup.py test
20+
{envpython} -m lupa.tests.__main__
2121
sitepackages=False

0 commit comments

Comments
 (0)