Skip to content

fix: add pip --user bin dir to PATH so documented test command works - #376

Open
danhicks853 wants to merge 1 commit into
closeio:masterfrom
danhicks853:fix/dockerfile-user-bin-path
Open

fix: add pip --user bin dir to PATH so documented test command works#376
danhicks853 wants to merge 1 commit into
closeio:masterfrom
danhicks853:fix/dockerfile-user-bin-path

Conversation

@danhicks853

Copy link
Copy Markdown

Went to run the test suite to find somewhere to contribute and hit this first:

docker-compose run --rm tasktiger pytest → exec: "pytest": executable file not found in $PATH

The Dockerfile installs with pip install --user, so console scripts land in /root/.local/bin, which isn't on PATH. pip actually warns about it during the build. Adding the dir to PATH makes the documented command work.

python -m pytest works fine, which is presumably why nobody's hit it, along with CI running through Actions rather than compose.

Verified after the change: 184 passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant