File tree Expand file tree Collapse file tree 1 file changed +11
-33
lines changed Expand file tree Collapse file tree 1 file changed +11
-33
lines changed Original file line number Diff line number Diff line change @@ -4,46 +4,24 @@ stages:
4
4
- pages
5
5
- automated-api-tests
6
6
7
- setup_tests :
7
+ setup_and_run_tests :
8
8
stage : setup_tests
9
9
image : mcr.microsoft.com/playwright/python:v1.38.0-jammy
10
10
script :
11
- - ls
12
11
- pip install -r requirements.txt
13
- - ls
14
12
- cp .env.example .env
15
- - ls
16
13
- python test_dotenv.py
17
- - ls
18
14
- PLAYWRIGHT_BROWSERS_PATH=/ms-playwright python -m playwright install --with-deps chromium
19
- artifacts :
20
- paths :
21
- - reports
15
+ - pytest --junitxml=reports/xml/report.xml --template=html1/index.html --report=reports/html/index.html -m ui -v
22
16
23
- ui :
24
- stage : run_tests
25
- needs : [ "setup_tests" ]
17
+ pages :
18
+ stage : pages
26
19
script :
27
20
- ls
28
- - pytest --junitxml=reports/xml/report.xml --template=html1/index.html --report=reports/html/index.html -m ui -v
29
-
30
- # api:
31
- # stage: run_tests
32
- # image: mcr.microsoft.com/playwright/python:v1.38.0-jammy
33
- # needs: [ "setup_tests" ]
34
- # script:
35
- # - ls
36
- # - pytest --junitxml=reports/xml/report.xml --template=html1/index.html --report=reports/html/index.html -m api -v
37
-
38
-
39
- # pages:
40
- # stage: pages
41
- # script:
42
- # - ls
43
- # - ls reports/html
44
- # - mkdir .public
45
- # - cp -r reports/html/* .public
46
- # - mv .public public
47
- # artifacts:
48
- # paths:
49
- # - public
21
+ - ls reports/html
22
+ - mkdir .public
23
+ - cp -r reports/html/* .public
24
+ - mv .public public
25
+ artifacts :
26
+ paths :
27
+ - public
You can’t perform that action at this time.
0 commit comments