File tree Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 24
24
with :
25
25
python-version : " 3.10"
26
26
27
+ - name : Cache Python packages
28
+ uses : actions/cache@v3
29
+ with :
30
+ path : |
31
+ ~/.cache/pip
32
+ !~/.cache/pip/wheel
33
+ key : ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
34
+
27
35
- name : Install Chrome and WebDriver if not already installed
28
36
run : |
29
37
if ! command -v google-chrome &>/dev/null; then
@@ -35,23 +43,29 @@ jobs:
35
43
36
44
- name : Install dependencies
37
45
run : |
46
+ set -e
38
47
python -m pip install --upgrade pip
39
48
pip install -r requirements.txt
40
49
pip install --upgrade pytest pytest-html
41
50
pip install ruff
51
+ pip install chromedriver-autoinstaller
52
+ python -m chromedriver_autoinstaller
53
+
54
+ - name : Set PYTHONPATH
55
+ run : echo "PYTHONPATH=$(pwd)" >> $GITHUB_ENV
42
56
43
57
- name : Run Linting
44
58
run : |
45
59
ruff check .
46
60
47
61
- name : Run tests
48
62
run : |
49
- python -m pytest --verbose --junit-xml=test-results.xml
63
+ python -m pytest --verbose --maxfail=5 --disable-warnings -- junit-xml=test-results.xml
50
64
51
65
- name : Publish Test Report
52
66
uses : mikepenz/action-junit-report@v3
53
67
if : success() || failure() # always run even if the previous step fails
54
68
with :
55
69
report_paths : ' **/test-results.xml'
56
70
detailed_summary : true
57
- include_passed : true
71
+ include_passed : true
Original file line number Diff line number Diff line change @@ -13,4 +13,5 @@ cryptography~=43.0.1
13
13
beautifulsoup4 == 4.12.2
14
14
requests ~= 2.31.0
15
15
setuptools ~= 68.2.2
16
- ruff ~= 0.6.8
16
+ ruff ~= 0.6.8
17
+ Appium-Python-Client ~= 2.7.1
You can’t perform that action at this time.
0 commit comments