Compare commits
1 Commits
8fddabfbe8
...
a672f48f7c
| Author | SHA1 | Date | |
|---|---|---|---|
| a672f48f7c |
@@ -62,7 +62,11 @@ jobs:
|
||||
|
||||
- name: Run MapView tests
|
||||
working-directory: IoT-Systems
|
||||
run: docker run --rm -it -v $PWD/MapView:/app:ro local/mapview/${{gitea.sha}}
|
||||
run: docker run --rm -it local/mapview/${{gitea.sha}}
|
||||
|
||||
- name: Clean up containers
|
||||
if: ${{always()}}
|
||||
run: docker image rm local/mapview/${{gitea.sha}}
|
||||
|
||||
integration-smoke-test:
|
||||
name: Integration smoke testing
|
||||
|
||||
@@ -6,9 +6,10 @@ WORKDIR /app
|
||||
COPY MapView/requirements.txt .
|
||||
RUN sed -i 's/==.*//' requirements.txt
|
||||
|
||||
RUN apt update && apt install -y libgl-dev libsdl1.2-dev
|
||||
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
RUN pip install --root-user-action ignore --no-cache-dir python-unittest kivy[base] pygame
|
||||
|
||||
RUN pip install --root-user-action ignore --no-cache-dir unittest
|
||||
# Copy the entire application into the container
|
||||
COPY MapView/. .
|
||||
# Run the main.py script inside the container when it starts
|
||||
#CMD ["uvicorn", "main:app", "--host", "0.0.0.0"]
|
||||
CMD ["./test-entry.sh"]
|
||||
|
||||
Reference in New Issue
Block a user