Skip to content

Commit d904800

Browse files
committed
Replace setup.py test for pytest
1 parent 055144b commit d904800

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ jobs:
111111
- name: Set up Python packages
112112
run: |
113113
python -m pip install -U ${{ startsWith(matrix.python-version, '2.7') && '"pip<21" "setuptools<45"' || 'pip setuptools' }}
114-
python -m pip install -U wheel tox virtualenv -r requirements.txt
114+
python -m pip install -U wheel tox virtualenv pytest -r requirements.txt
115115
116116
- name: Set up Lua ${{ matrix.lua-version }}
117117
if: contains(matrix.os, 'ubuntu') && matrix.lua-version != 'bundle'
@@ -125,7 +125,7 @@ jobs:
125125
LDFLAGS: ${{ env.CFLAGS_LTO }}
126126

127127
- name: Run tests
128-
run: python setup.py test
128+
run: pytest lupa
129129
continue-on-error: ${{ contains(matrix.python-version, 'pypy') }}
130130
env:
131131
SETUP_OPTIONS: ${{ !contains(matrix.lua-version, 'luajit') && (contains(matrix.lua-version, 'bundle') && '--use-bundle' || '--no-luajit') || '' }}

appveyor.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ install:
2727
- SET PATH=C:\\Python%PYTHON%;c:\\Python%PYTHON%\\scripts;%PATH%
2828
- python -m pip.__main__ install -U pip wheel setuptools
2929
- pip install -r requirements.txt
30+
- pip install pytest
3031
- git submodule update --init --recursive
3132

3233
build: off
@@ -37,7 +38,7 @@ build_script:
3738

3839
test: off
3940
test_script:
40-
- python -u setup.py test
41+
- pytest lupa
4142

4243
artifacts:
4344
- path: dist/*.whl

tox.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ envlist=
1313
deps=
1414
Cython
1515
setuptools
16+
pytest
1617
passenv=
1718
SETUP_OPTIONS
1819
commands=
1920
{envpython} setup.py --with-cython {env:SETUP_OPTIONS:} build install
20-
{envpython} setup.py test
21+
{envpython} pytest lupa
2122
sitepackages=False

0 commit comments

Comments
 (0)