Compare commits

..

1 Commits

Author SHA1 Message Date
8fddabfbe8 [P] Integrate MapView testing into CI pipeline
Some checks failed
Component testing / Hub testing (push) Successful in 20s
Component testing / Store testing (push) Successful in 32s
Component testing / Integration smoke testing (push) Has been cancelled
Component testing / MapView testing (push) Has been cancelled
2026-03-31 12:37:36 +03:00
2 changed files with 5 additions and 10 deletions

View File

@@ -62,11 +62,7 @@ jobs:
- name: Run MapView tests
working-directory: IoT-Systems
run: docker run --rm -it local/mapview/${{gitea.sha}}
- name: Clean up containers
if: ${{always()}}
run: docker image rm local/mapview/${{gitea.sha}}
run: docker run --rm -it -v $PWD/MapView:/app:ro local/mapview/${{gitea.sha}}
integration-smoke-test:
name: Integration smoke testing

View File

@@ -6,10 +6,9 @@ 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 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"]
RUN pip install --root-user-action ignore --no-cache-dir python-unittest kivy[base] pygame
CMD ["./test-entry.sh"]