Skip to content

Commit

Permalink
CI: Make test command work with recent setuptools.
Browse files Browse the repository at this point in the history
  • Loading branch information
scoder committed Oct 17, 2024
1 parent 41dd7eb commit f9cb3a3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ jobs:
LDFLAGS: ${{ env.CFLAGS_LTO }}

- name: Run tests
run: python setup.py test
run: python -m lupa.tests.__main__
continue-on-error: ${{ contains(matrix.python-version, 'pypy') }}
env:
SETUP_OPTIONS: ${{ !contains(matrix.lua-version, 'luajit') && (contains(matrix.lua-version, 'bundle') && '--use-bundle' || '--no-luajit') || '' }}
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ build_script:

test: off
test_script:
- python -u setup.py test
- python -u -m lupa.tests.__main__

artifacts:
- path: dist/*.whl
Expand Down
4 changes: 4 additions & 0 deletions lupa/tests/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
if __name__ == '__main__':
import unittest
from . import suite
unittest.TextTestRunner(verbosity=2).run(suite())
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ passenv=
SETUP_OPTIONS
commands=
{envpython} setup.py --with-cython {env:SETUP_OPTIONS:} build install
{envpython} setup.py test
{envpython} -m lupa.tests.__main__
sitepackages=False

0 comments on commit f9cb3a3

Please sign in to comment.