Skip to content

Commit

Permalink
test-6
Browse files Browse the repository at this point in the history
  • Loading branch information
krrish-sehgal committed Dec 23, 2024
1 parent fe5aae9 commit 1487240
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,14 +175,10 @@ jobs:
run: |
docker run -d --name my-container my-app
- name: Install dependencies inside Docker container
- name: Install dependencies inside Docker container to test the env
run: |
docker exec my-container poetry install --no-dev --no-interaction
- name: Run tests inside Docker container
run: |
docker exec my-container poetry run xvfb-run --auto-servernum python manage.py test -v 3 --failfast
- name: Clean up
run: |
docker stop my-container
Expand Down
9 changes: 0 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,8 @@ RUN apt-get update && \
apt-get install -y postgresql-client libpq-dev \
libmemcached11 libmemcachedutil2 libmemcached-dev libz-dev \
dos2unix && \
apt-get install -y xvfb && \
rm -rf /var/lib/apt/lists/*


# Install wget and add Google Chrome repository
# RUN apt-get install -y wget
# RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
# && echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list
# RUN apt-get update && apt-get -y install google-chrome-stable

# # Install Chrome WebDriver
# RUN CHROMEDRIVER_VERSION=`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE` && \
# mkdir -p /opt/chromedriver-$CHROMEDRIVER_VERSION && \
Expand All @@ -37,7 +29,6 @@ RUN curl -sS -o - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-ke

RUN ln -s /usr/bin/google-chrome-stable /usr/local/bin/google-chrome


# Install Poetry and dependencies
RUN pip install poetry
RUN poetry config virtualenvs.create false
Expand Down

0 comments on commit 1487240

Please sign in to comment.