From c755d5c35a25ab118746e2ba885894ff66fb8c43 Mon Sep 17 00:00:00 2001 From: Jesse Farebrother Date: Tue, 28 Sep 2021 18:26:54 -0600 Subject: [PATCH] Tests: don't use editable mode, use import-mode=append (#2429) --- .github/workflows/build.yml | 2 +- py.Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bc02ae78d..3239a6960 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,4 +15,4 @@ jobs: --build-arg PYTHON_VERSION=${{ matrix.python-version }} \ --tag gym-docker . - name: Run tests - run: docker run gym-docker pytest --forked + run: docker run gym-docker pytest --forked --import-mode=append diff --git a/py.Dockerfile b/py.Dockerfile index 5e71ef6d6..7ff6d3477 100644 --- a/py.Dockerfile +++ b/py.Dockerfile @@ -15,6 +15,6 @@ ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/root/.mujoco/mjpro150/bin COPY . /usr/local/gym/ WORKDIR /usr/local/gym/ -RUN pip install -e .[nomujoco,accept-rom-license] && pip install -r test_requirements.txt +RUN pip install .[nomujoco,accept-rom-license] && pip install -r test_requirements.txt ENTRYPOINT ["/usr/local/gym/bin/docker_entrypoint"]