forked from lassepe/pyILQR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
34 lines (30 loc) · 869 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
--- # Global --------------------------
cache:
key: "${CI_JOB_NAME}"
paths:
- .venv
- .poetry
stages:
- tests
# Jobs templates ------------------
tests: &test
stage: tests
image: python:3.9
# install dependencies
before_script:
- if [ ! -e .poetry/bin/poetry ] ; then
# Poetry is not installed (note: $HOME tells get-poetry.py were to install)
- curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | HOME=$PWD python -
- fi
- export PATH=$PWD/.poetry/bin:$PATH
- poetry config --local cache-dir $PWD/.poetry/cache
- poetry config --local virtualenvs.in-project true
- poetry --version
- poetry install --no-interaction
script:
- poetry run pytest --cov-report=xml --cov-report=html
artifacts:
paths:
- htmlcov
reports:
cobertura: coverage.xml