diff --git a/trunk/PKGBUILD b/trunk/PKGBUILD index 7df123f3..ffa82fc6 100644 --- a/trunk/PKGBUILD +++ b/trunk/PKGBUILD @@ -26,12 +26,13 @@ build() { check() { cd nbconvert-$pkgver - export PYTHONPATH="$PWD" # Make sure system nbconvert is not used + python -m venv --system-site-packages test-env + test-env/bin/python -m pip install -e . # disable tests that download chromium and (probably) require a graphical session - pytest -v -k 'TestWebPDFExporter and not (test_export or test_webpdf_without_pyppeteer)' -W ignore::DeprecationWarning - pytest -v -k 'TestNbConvertApp and not test_webpdf_with_chromium' -W ignore::DeprecationWarning + test-env/bin/python -m pytest -v -k 'TestWebPDFExporter and not (test_export or test_webpdf_without_pyppeteer)' -W ignore::DeprecationWarning + test-env/bin/python -m pytest -v -k 'TestNbConvertApp and not test_webpdf_with_chromium' -W ignore::DeprecationWarning # run all remaining tests - pytest -v -k 'not TestWebPDFExporter and not TestNbConvertApp' -W ignore::DeprecationWarning + test-env/bin/python -m pytest -v -k 'not TestWebPDFExporter and not TestNbConvertApp' -W ignore::DeprecationWarning } package() {