Skip to content

Commit a5585dc

Browse files
committed
fixes
1 parent 368ef76 commit a5585dc

File tree

1 file changed

+11
-33
lines changed

1 file changed

+11
-33
lines changed

.gitlab-ci.yml

Lines changed: 11 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -4,46 +4,24 @@ stages:
44
- pages
55
- automated-api-tests
66

7-
setup_tests:
7+
setup_and_run_tests:
88
stage: setup_tests
99
image: mcr.microsoft.com/playwright/python:v1.38.0-jammy
1010
script:
11-
- ls
1211
- pip install -r requirements.txt
13-
- ls
1412
- cp .env.example .env
15-
- ls
1613
- python test_dotenv.py
17-
- ls
1814
- 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
2216

23-
ui:
24-
stage: run_tests
25-
needs: [ "setup_tests" ]
17+
pages:
18+
stage: pages
2619
script:
2720
- 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

0 commit comments

Comments
 (0)