Skip to content
Snippets Groups Projects
Commit a29f4a7f authored by Charlotte Hausman's avatar Charlotte Hausman
Browse files

unit tests

parent 68a13480
No related branches found
No related tags found
2 merge requests!1452Merge 2.8.2 to main,!1396changes for local builds
Pipeline #10287 failed
......@@ -4,7 +4,7 @@
- ls -la
- pip3 install --upgrade pip
- pip3 install -r test-requirements.txt
- pytest ./${PATH_PREFIX}${SERVICE_NAME}/test --cov=${SERVICE_NAME} --cov-report=html
- python3 -m pytest ./${PATH_PREFIX}${SERVICE_NAME}/test --cov=${SERVICE_NAME} --cov-report=html
artifacts:
paths:
- .coverage.${SERVICE_NAME}.${CI_COMMIT_SHORT_SHA}
......
......@@ -37,7 +37,9 @@ ENV PATH "${PATH}:/home/vlapipe/.local/bin"
COPY --chown=vlapipe:vlapipe ./shared ./shared
COPY --chown=vlapipe:vlapipe ./apps/cli ./apps/cli
COPY --chown=vlapipe:vlapipe ./services/capability/requirements.txt ./requirements.txt
COPY --chown=vlapipe:vlapipe ./test-requirements.txt ./test-requirements.txt
RUN SETUPTOOLS_SCM_PRETEND_VERSION=${WS_VERSION} pip install --user -r requirements.txt
RUN SETUPTOOLS_SCM_PRETEND_VERSION=${WS_VERSION} pip install --user -r test-requirements.txt
# Copy service directory to /code in the image
# set ownership of content to vlapipe and the vlapipe group
......
dsnparse
dsnparse==0.1.15
pytest
pendulum==2.1.2
pytest-mock==3.10.0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment