Skip to content

Commit

Permalink
[System Tests] Add API requirements (#1383)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hedingber committed Oct 3, 2021
1 parent e23c020 commit e746e9c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/system-tests-opensource.yml
Expand Up @@ -54,7 +54,9 @@ jobs:
with:
python-version: 3.7
- name: Install automation scripts dependencies and add mlrun to dev packages
run: pip install -r automation/requirements.txt -r dockerfiles/test-system/requirements.txt && pip install -e .
run: |
pip install -r automation/requirements.txt -r dockerfiles/test-system/requirements.txt \
-r dockerfiles/api/requirements.txt && pip install -e .
# TODO: How can we avoid these duplicate lines from the enterprise system tests, up until line 120.
- name: Install curl and jq
Expand Down
18 changes: 13 additions & 5 deletions dockerfiles/test-system/Dockerfile
Expand Up @@ -26,11 +26,19 @@ RUN apt-get update && apt-get install --no-install-recommends -y \

RUN python -m pip install --upgrade pip~=20.2.0

COPY ./dockerfiles/test-system/requirements.txt /tmp/test-system-requirements.txt
COPY ./extras-requirements.txt /tmp
COPY ./requirements.txt /tmp
RUN python -m pip install -r /tmp/requirements.txt -r /tmp/extras-requirements.txt -r /tmp/test-system-requirements.txt && rm -f /tmp/*requirements.txt
COPY ./dockerfiles/test-system/requirements.txt /tmp/mlrun-requirements/test-system-requirements.txt
COPY ./dockerfiles/mlrun-api/requirements.txt /tmp/mlrun-requirements/mlrun-api-requirements.txt
COPY ./extras-requirements.txt /tmp/mlrun-requirements
COPY ./requirements.txt /tmp/mlrun-requirements
RUN python -m pip install \
-r /tmp/mlrun-requirements/requirements.txt \
-r /tmp/mlrun-requirements/extras-requirements.txt \
-r /tmp/mlrun-requirements/mlrun-api-requirements.txt \
-r /tmp/mlrun-requirements/test-system-requirements.txt
COPY . /tmp/mlrun
RUN cd /tmp/mlrun && python -m pip install ".[complete]" && mv tests /tests && mv Makefile /Makefile && cd /tmp && rm -rf mlrun
RUN cd /tmp/mlrun && python -m pip install ".[complete]" && mv tests /tests && mv Makefile /Makefile

# Clean up all code used for building to simulate user env
RUN rm -rf /tmp/mlrun-requirements && rm -rf /tmp/mlrun

CMD ["make", "test-system"]

0 comments on commit e746e9c

Please sign in to comment.