1+ default :
2+ image : python:3.7
3+ before_script :
4+ - echo ===== update pip =====
5+ - python -m pip install -U pip
6+ - echo ===== install tox =====
7+ - pip install tox
8+ - echo ===== create folder for artifacts =====
9+ - mkdir test-reports
10+
111stages :
212 - pytest
313 - quality
@@ -13,15 +23,6 @@ cache:
1323
1424pytest :
1525 stage : pytest
16- image : python:3.7
17- # several python versions in 1 image: quay.io/python-devs/ci-image
18- before_script :
19- - echo ===== update pip =====
20- - python -m pip install -U pip
21- - echo ===== install tox =====
22- - pip install tox
23- - echo ===== create folder for artifacts =====
24- - mkdir test-reports
2526 script :
2627 - tox -e py
2728 artifacts :
@@ -35,47 +36,22 @@ pytest:
3536black :
3637 stage : quality
3738 image : python:3.7
38- before_script :
39- - echo ===== update pip =====
40- - python -m pip install -U pip
41- - echo ===== install tox =====
42- - pip install tox
4339 script :
4440 - tox -e black
4541
4642mypy :
4743 stage : quality
48- image : python:3.7
49- before_script :
50- - echo ===== update pip =====
51- - python -m pip install -U pip
52- - echo ===== install tox =====
53- - pip install tox
5444 script :
5545 - tox -e mypy
5646
5747docs :
5848 stage : quality
59- image : python:3.7
60- before_script :
61- - echo ===== update pip =====
62- - python -m pip install -U pip
63- - echo ===== install tox =====
64- - pip install tox
6549 script :
6650 - tox -e docs
6751
6852pytest-main :
6953# run test using directly the pytest main branch
7054 stage : pytest
71- image : python:3.7
72- before_script :
73- - echo ===== update pip =====
74- - python -m pip install -U pip
75- - echo ===== install tox =====
76- - pip install tox
77- - echo ===== create folder for artifacts =====
78- - mkdir test-reports
7955 script :
8056 - tox -e pytest-main
8157 artifacts :
0 commit comments