Skip to content

Commit dea56a3

Browse files
committed
split test job
1 parent b6f2930 commit dea56a3

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.gitlab-ci.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,32 @@
11
stages:
2-
- test
2+
- setup_tests
3+
- run_tests
34
- pages
45
- automated-api-tests
56

6-
test:
7+
setup_tests:
78
stage: test
89
image: mcr.microsoft.com/playwright/python:v1.38.0-jammy
910
script:
1011
- pip install -r requirements.txt
1112
- cp .env.example .env
1213
- python test_dotenv.py
1314
- PLAYWRIGHT_BROWSERS_PATH=/ms-playwright python -m playwright install --with-deps chromium
14-
- pytest --junitxml=reports/xml/report.xml --template=html1/index.html --report=reports/html/index.html -m ui -v
1515
artifacts:
1616
paths:
1717
- reports
18+
19+
ui:
20+
stage: run_tests
21+
script:
22+
- pytest --junitxml=reports/xml/report.xml --template=html1/index.html --report=reports/html/index.html -m ui -v
23+
24+
api:
25+
stage: run_tests
26+
script:
27+
- pytest --junitxml=reports/xml/report.xml --template=html1/index.html --report=reports/html/index.html -m api -v
28+
29+
1830
#pages:
1931
# stage: pages
2032
# script:

0 commit comments

Comments
 (0)