-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile-tests-actions
More file actions
30 lines (25 loc) · 988 Bytes
/
Dockerfile-tests-actions
File metadata and controls
30 lines (25 loc) · 988 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Copyright 2019-2022 CEA LIST
# SPDX-FileCopyrightText: 2019-2022 CEA LIST <gael.de-chalendar@cea.fr>
#
# SPDX-License-Identifier: MIT
ARG PYTHON_VERSION=3.7
FROM aymara/lima-python${PYTHON_VERSION}:latest AS lima_python
ARG PYTHON_VERSION=3.7
FROM python:${PYTHON_VERSION}
ARG LIMA_PYTHON_VERSION
ARG PYTHON_WHEEL_VERSION
RUN pip install -U pip
RUN pip install pytest pytest-cov pytest-runner aymara
RUN lima_models.py -l eng
RUN pip uninstall -y aymara
COPY --from=lima_python /lima-python/wheelhouse/aymara-${LIMA_PYTHON_VERSION}-${PYTHON_WHEEL_VERSION}-manylinux_2_28_x86_64.whl /
RUN pip install /aymara-${LIMA_PYTHON_VERSION}-cp37-abi3-manylinux_2_28_x86_64.whl
RUN install -d /lima-python
RUN lima_models -i eng
RUN deeplima_models -i eng
WORKDIR /lima-python
COPY .coveragerc .
RUN install -d /lima-python/tests
COPY tests/* /lima-python/tests/
COPY aymara/* /lima-python/aymara/
RUN python3 -m pytest --cov=aymara --cov-config=.coveragerc --cov-report term-missing tests/