Skip to content

Commit

Permalink
Merge pull request #536 from akaihola/nixos-pytest-plugin-fix
Browse files Browse the repository at this point in the history
Run Pytest in installed package in Nix test
  • Loading branch information
akaihola authored Feb 26, 2024
2 parents dc3d0c8 + 57d512a commit e272a1a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e272a1a

Please sign in to comment.