mirror of
https://github.com/Screenly/Anthias.git
synced 2026-02-20 07:54:27 -05:00
- Add a new GitHub workflow for running unit tests. - Modify existing workflow for building images, so that it will only run if no tests are failing. - "Comment out" (skip) failing Python unit tests in the meantime. Will be addressed in future PRs.
22 lines
567 B
Docker
22 lines
567 B
Docker
FROM screenly/srly-ose-base:latest-x86
|
|
|
|
ADD requirements/requirements.txt /tmp/requirements.txt
|
|
ADD requirements/requirements.dev.txt /tmp/requirements.dev.txt
|
|
ADD requirements/requirements.viewer.txt /tmp/requirements.viewer.txt
|
|
|
|
RUN pip install --no-cache-dir \
|
|
-r /tmp/requirements.txt \
|
|
-r /tmp/requirements.dev.txt \
|
|
-r /tmp/requirements.viewer.txt
|
|
|
|
RUN mkdir -p /usr/src/app
|
|
COPY . /usr/src/app
|
|
WORKDIR /usr/src/app
|
|
|
|
ARG GIT_HASH
|
|
ENV GIT_HASH=$GIT_HASH
|
|
ARG GIT_SHORT_HASH
|
|
ENV GIT_SHORT_HASH=$GIT_SHORT_HASH
|
|
ARG GIT_BRANCH
|
|
ENV GIT_BRANCH=$GIT_BRANCH
|