Skip to content
Snippets Groups Projects
Commit 0037e2e2 authored by Jan Habscheid's avatar Jan Habscheid
Browse files

Add Coverage?

parent 7e4b1859
No related branches found
No related tags found
1 merge request!9Added Coverage
Pipeline #1534363 failed
This commit is part of merge request !9. Comments created here will be created in the context of that merge request.
......@@ -49,7 +49,14 @@ test:
tags:
- docker
script:
- python -m pytest # Run the tests
# - python -m pytest # Run the tests
- pytest --cov=fxdgm --cov-report=xml --cov-report=term-missing tests/ # Run the tests and store coverage
artifacts:
paths:
- coverage.xml # Save the coverage report
expire_in: 12 month # Optional: Set how long to keep the artifacts (default: 30 days)
coverage: '/^TOTAL.*\s+(\d+\%)$/'
# Job to deploy documentation to GitLab Pages
pages:
......
......@@ -9,7 +9,7 @@ ENV HOME /root
# Create the environment and install packages
# FEniCSx backend + documentation and testing dependencies
RUN conda create --name ${CONDA_DEFAULT_ENV} python=3.12.3 -y && \
conda install -n ${CONDA_DEFAULT_ENV} -c conda-forge fenics-dolfinx=0.8.0 mpich=4.2.1 pyvista=0.43.10 gcc=12.4.0 sphinx=7.3.7 myst-parser=4.0.0 sphinx-copybutton=0.5.2 sphinx-rtd-theme=3.0.1 pytest==8.3.3 -y
conda install -n ${CONDA_DEFAULT_ENV} -c conda-forge fenics-dolfinx=0.8.0 mpich=4.2.1 pyvista=0.43.10 gcc=12.4.0 sphinx=7.3.7 myst-parser=4.0.0 sphinx-copybutton=0.5.2 sphinx-rtd-theme=3.0.1 pytest==8.3.3 pytest-cov==6.0.0 -y
# fxdgm package from git
RUN pip install git+https://git.rwth-aachen.de/JanHab/bsc-electrolytemodels@Package
......
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