File tree 4 files changed +8
-8
lines changed
4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 61
61
runs-on : ubuntu-20.04
62
62
strategy :
63
63
matrix :
64
- toxenv : [py_func_v4 , cli_func_v4]
64
+ toxenv : [api_func_v4 , cli_func_v4]
65
65
steps :
66
66
- uses : actions/checkout@v3
67
67
- name : Set up Python
Original file line number Diff line number Diff line change @@ -89,15 +89,15 @@ To run these tests:
89
89
tox -e cli_func_v4
90
90
91
91
# run the python API tests:
92
- tox -e py_func_v4
92
+ tox -e api_func_v4
93
93
94
94
When developing tests it can be a little frustrating to wait for GitLab to spin
95
95
up every run. To prevent the containers from being cleaned up afterwards, pass
96
96
`--keep-containers ` to pytest, i.e.:
97
97
98
98
.. code-block :: bash
99
99
100
- tox -e py_func_v4 -- --keep-containers
100
+ tox -e api_func_v4 -- --keep-containers
101
101
102
102
If you then wish to test against a clean slate, you may perform a manual clean
103
103
up of the containers by running:
@@ -117,11 +117,11 @@ The tag must match an exact tag on Docker Hub:
117
117
.. code-block :: bash
118
118
119
119
# run tests against `nightly` or specific tag
120
- GITLAB_TAG=nightly tox -e py_func_v4
121
- GITLAB_TAG=12.8.0-ce.0 tox -e py_func_v4
120
+ GITLAB_TAG=nightly tox -e api_func_v4
121
+ GITLAB_TAG=12.8.0-ce.0 tox -e api_func_v4
122
122
123
123
# run tests against the latest gitlab EE image
124
- GITLAB_IMAGE=gitlab/gitlab-ee tox -e py_func_v4
124
+ GITLAB_IMAGE=gitlab/gitlab-ee tox -e api_func_v4
125
125
126
126
A freshly configured gitlab container will be available at
127
127
http://localhost:8080 (login ``root `` / password ``5iveL!fe ``). A configuration
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ coverage:
7
7
range : " 70...100"
8
8
9
9
comment :
10
- after_n_builds : 3 # coverage, py_func_v4 , py_func_cli
10
+ after_n_builds : 3 # coverage, api_func_v4 , py_func_cli
11
11
layout : " diff,flags,files"
12
12
behavior : default
13
13
require_changes : yes
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ deps = -r{toxinidir}/requirements-docker.txt
106
106
commands =
107
107
pytest --script-launch-mode =subprocess --cov --cov-report xml tests/functional/cli {posargs}
108
108
109
- [testenv:py_func_v4 ]
109
+ [testenv:api_func_v4 ]
110
110
deps = -r{toxinidir}/requirements-docker.txt
111
111
commands =
112
112
pytest --cov --cov-report xml tests/functional/api {posargs}
You can’t perform that action at this time.
0 commit comments