Repository navigation
74 lines (58 loc) · 1.94 KB
/
Copy pathrun_tests.yml
File metadata and controls
74 lines (58 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: On push regression tests
on: [ push ]
jobs:
regression:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: docker compose pull browsers
uses: hoverkraft-tech/compose-action@v2.0.0
with:
compose-file: framework/docker-browsers-pull.yaml
up-flags: -d
- name: docker compose healenium
uses: hoverkraft-tech/compose-action@v2.0.0
with:
compose-file: framework/healenium/docker-compose-selenoid.yaml
up-flags: -d
- name: current running containers
run: docker ps -a
- name: get docker images
run: docker images
- name: Set up Python 3.12
uses: actions/setup-python@v5.1.0
with:
python-version: 3.12
- name: Upgrade pip
run:
python -m pip install --upgrade pip
- name: Install dependencies
run:
pip install -r requirements.txt
- name: Install pytest plugin
run: pip install pytest-github-actions-annotate-failures
- name: run framework unittests
run: pytest framework/tests
- name: run sanity tests - chrome
run: pytest -s -v -m sanity
- name: run sanity tests - firefox
run: pytest -s -v --browser_type firefox -m sanity
- name: run sanity tests - edge
run: pytest -s -v --browser_type edge -m sanity
- name: Allure results
uses: simple-elf/allure-report-action@master
if: always()
id: allure-report
with:
allure_results: allure-results
allure_report: allure-report
gh_pages: gh-pages
allure_history: allure-history
- name: Deploy report to Github Pages
if: always()
uses: peaceiris/actions-gh-pages@v3.9.3
with:
PERSONAL_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: allure-history