-
Adrian Ciu authored0c03c2d4
.gitlab-ci.yml 701 B
stages:
- build
- test
variables:
BUILD_ENV_DOCKER_IMAGE: docker-registry.ebrains.eu/dedal/tmp:latest
build-wheel:
stage: build
tags:
- docker-runner
image: python:latest
before_script:
- python -m pip install --upgrade pip setuptools wheel build
script:
- python -m build --sdist --wheel
artifacts:
paths:
- dist/*.whl
- dist/*.tar.gz
expire_in: 1 week
testing:
stage: test
tags:
- docker-runner
image: python:latest
script:
- pip install -e .
- pytest ./dedal/tests/ --junitxml=test-results.xml
artifacts:
when: always
reports:
junit: test-results.xml
paths:
- test-results.xml
expire_in: 1 week