Mentions légales du service

Skip to content
Snippets Groups Projects

#7 add test and build CI

Merged FARNUDI Ali requested to merge 7-setup-ci into master
1 file
+ 36
0
Compare changes
  • Side-by-side
  • Inline
.gitlab-ci.yml 0 → 100644
+ 36
0
image: continuumio/miniconda3
before_script:
- conda env create -n pybinder -f environment.yml
- conda activate pybinder
tests:
stage: test
tags:
- ci.inria.fr
- small
script:
- pip install pytest coverage
- coverage run -m pytest -rsv --junit-xml=report.xml # Generate test report in junit format
- coverage report # for displaying coverage in job logs
- coverage xml # for generating coverage.xml report
coverage: '/^TOTAL.+?(\d+\%)$/'
artifacts:
when: always
reports:
coverage_report:
coverage_format: cobertura
path: coverage.xml
junit: report.xml
interruptible: true
build:
stage: test
tags:
- ci.inria.fr
- small
script:
- pip install --upgrade build
- python -m build
Loading