-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.gitlab-ci.yml
67 lines (58 loc) · 1.13 KB
/
.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Change pip's cache directory to be inside the project directory since we can
# only cache local items.
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
cache:
paths:
- .cache/pip
before_script:
- python -V
- pip install poetry
- poetry install
# py36:
# image: python:3.6
# stage: test
# script:
# - poetry run pip uninstall -y horn-py
# - make clean
# - poetry run pip freeze > r.txt
# - poetry env remove 3.7
# - pip uninstall -y poetry
# - rm pyproject.toml
# - sed -i '1,3d' r.txt
# - sed -i -E '/^poetry.+$/d' r.txt
# - pip install -r r.txt
# - pip install -e .
# - tox -epy36
py37:
image: python:3.7
stage: test
script:
- poetry run pytest
py38:
image: python:3.8
stage: test
script:
- poetry run pytest
py39:
image: python:3.9
stage: test
script:
- poetry run pytest
py310:
image: python:3.10
stage: test
script:
- poetry run pytest
py311:
image: python:3.11
stage: test
script:
- poetry run pytest
coverage: '/^TOTAL.+?(\d+\%)$/'
pypy:
image: pypy:3
stage: test
script:
- pypy3 -V
- poetry run pytest