-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
59 lines (47 loc) · 1010 Bytes
/
.gitlab-ci.yml
File metadata and controls
59 lines (47 loc) · 1010 Bytes
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
image: "python:3"
before_script:
- curl -sSL https://install.python-poetry.org | POETRY_HOME=$PWD/.poetry python -
- export PATH=$PWD/.poetry/bin:$PATH
- poetry config --local cache-dir "$PWD/.poetry/cache"
- poetry config --local virtualenvs.in-project true
- poetry install
stages:
- Static Analysis
- Test
lint:
stage: Static Analysis
allow_failure: true
needs: []
script:
- poetry run flake8
# Run pytest tests in Python 3.8
test-py3.8:
image: "python:3.8"
stage: Test
needs: []
script:
- poetry run pytest
# Run pytest tests in Python 3.9
test-py3.9:
image: "python:3.9"
stage: Test
needs: []
script:
- poetry run pytest
# Run pytest tests in Python 3.10
test-py3.10:
image: "python:3.10"
stage: Test
needs: []
script:
- poetry run pytest
# Run pytest tests in Python 3.11
test-py3.11:
image: "python:3.11"
stage: Test
needs: []
script:
- poetry run pytest --cov
artifacts:
reports:
junit: .xunit/tests.xml