diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fff50306..af8eddea 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -72,7 +72,7 @@ jobs: - name: Set up Python packages run: | python -m pip install -U pip setuptools - python -m pip install -U wheel tox virtualenv -r requirements.txt + python -m pip install -U wheel tox virtualenv pytest -r requirements.txt - name: Set up Lua ${{ matrix.lua-version }} if: contains(matrix.os, 'ubuntu') && matrix.lua-version != 'bundle' @@ -94,7 +94,7 @@ jobs: - name: Run tests run: | bash -c "python -m pip install dist/lupa-*.whl" - python -m lupa.tests.__main__ + pytest lupa continue-on-error: ${{ contains(matrix.python-version, 'pypy') }} - name: Upload wheels diff --git a/appveyor.yml b/appveyor.yml index ae400193..629d5992 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -37,6 +37,7 @@ install: - SET PATH=C:\\Python%PYTHON%;c:\\Python%PYTHON%\\scripts;%PATH% - python -m pip.__main__ install -U pip wheel "setuptools!=72.0.0" - pip install -r requirements.txt + - pip install pytest - git submodule update --init --recursive build: off @@ -48,7 +49,7 @@ build_script: test: off test_script: - - python -u -m lupa.tests.__main__ + - pytest lupa artifacts: - path: dist/*.whl diff --git a/tox.ini b/tox.ini index 5c6044fa..a9389f18 100644 --- a/tox.ini +++ b/tox.ini @@ -13,9 +13,10 @@ envlist= deps= Cython setuptools + pytest passenv= SETUP_OPTIONS commands= {envpython} setup.py --with-cython {env:SETUP_OPTIONS:} build install - {envpython} -m lupa.tests.__main__ + {envpython} pytest lupa sitepackages=False