Skip to content

Commit

Permalink
Merge branch 'docker-ci_python' into 'development'
Browse files Browse the repository at this point in the history
utilize docker container for python pipeline step

See merge request damask/DAMASK!966
  • Loading branch information
MarDiehl committed Aug 2, 2024
2 parents f0b57a8 + e4d7add commit 61da246
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,20 +65,33 @@ create_testroot:
###################################################################################################
setuptools:
stage: python
tags:
- matesting2-container-runner
image: git.damask.mpie.de:5050/damask/damask:python310_2407
before_script: []
script:
- sed -i 's/-[[:digit:]]*-.*//' VERSION
- cd python
- python3 -m build --wheel --no-isolation

pytest:
stage: python
tags:
- matesting2-container-runner
image: git.damask.mpie.de:5050/damask/damask:python310_2407
before_script: []
script:
- PYTHONPATH=$(pwd)/python:$PYTHONPATH
- cd python
- pytest --basetemp ${TESTROOT}/python -v --cov --damaskroot=${CI_PROJECT_DIR}
- python3 -m pytest -v --cov=damask --cov-report=xml
- coverage report --fail-under=90 --show-missing

mypy:
stage: python
tags:
- matesting2-container-runner
image: git.damask.mpie.de:5050/damask/damask:python310_2407
before_script: []
script:
- cd python
- mypy damask
Expand Down

0 comments on commit 61da246

Please sign in to comment.