diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index a2d1e7b92..3c18a4507 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -68,7 +68,11 @@ jobs: python -m venv venv source venv/bin/activate pip install "${{needs.build-wheel.outputs.wheel-path}}[test]" - pytest + # Run tests in installed package to avoid plugin import issue: + pytest $(python -c " + import os, darker + print(os.path.dirname(darker.__file__)) + ") ' \ ./default.nix