diff options
Diffstat (limited to '.github/workflows/dockerfiles/Dockerfile_ubuntu')
-rw-r--r-- | .github/workflows/dockerfiles/Dockerfile_ubuntu | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/.github/workflows/dockerfiles/Dockerfile_ubuntu b/.github/workflows/dockerfiles/Dockerfile_ubuntu index 2e235cd..f76fa31 100644 --- a/.github/workflows/dockerfiles/Dockerfile_ubuntu +++ b/.github/workflows/dockerfiles/Dockerfile_ubuntu @@ -20,27 +20,30 @@ RUN locale-gen en_US.UTF-8 ENV LANG en_US.UTF-8 ENV LANGUAGE en_US:en ENV LC_ALL en_US.UTF-8 -ARG github_repo=jmcgeheeiv/pyfakefs -ARG github_branch=master +ARG github_repo=pytest-dev/pyfakefs +ARG github_branch=main RUN apt-get update && apt-get install -y \ python3-pip \ unzip \ - wget + wget \ + python3-venv + RUN apt-get clean RUN useradd -u 1000 pyfakefs RUN mkdir -p work \ - && wget https://github.com/$github_repo/archive/$github_branch.zip \ - && unzip $github_branch.zip -d work + && wget https://github.com/$github_repo/archive/$github_branch.zip -O archive.zip \ + && unzip archive.zip -d work RUN WORK_DIR=`ls -d work/*`; mv $WORK_DIR work/pyfakefs RUN chown -R pyfakefs:pyfakefs work/pyfakefs WORKDIR work/pyfakefs -RUN pip3 install -r requirements.txt -RUN pip3 install -r extra_requirements.txt +RUN python3 -m venv ../venv +RUN ../venv/bin/pip install -r requirements.txt +RUN ../venv/bin/pip install -r extra_requirements.txt USER pyfakefs ENV PYTHONPATH work/pyfakefs ENV TEST_REAL_FS=1 -CMD ["python3", "-m", "pyfakefs.tests.all_tests"] +CMD ["../venv/bin/python", "-m", "pyfakefs.tests.all_tests"] |