-
Notifications
You must be signed in to change notification settings - Fork 44
97 lines (94 loc) · 2.95 KB
/
Copy pathpython-package-5.yml
File metadata and controls
97 lines (94 loc) · 2.95 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
name: CI build 5 - (Ubuntu)
on:
schedule:
- cron: "38 */2 * * *"
push:
branches: [ master ]
pull_request:
branches:
workflow_dispatch:
branches:
jobs:
build:
env:
PY_COLORS: "1"
strategy:
fail-fast: false
max-parallel: 1
matrix:
os: [ubuntu-latest]
python-version: ["3.14"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel setuptools pipdeptree
# This installs SeleniumBase
pip install -r requirements.txt
- name: Lint with flake8
run: |
pip install flake8
# Stop the build if there are flake8 issues
flake8 . --count --show-source --statistics --exclude=temp
- name: Check the console scripts interface
run: |
seleniumbase
sbase
- name: Install chromedriver
run: |
seleniumbase install chromedriver
seleniumbase install uc_driver
- name: Make sure pytest is working
run: |
echo "def test_1(): pass" > nothing.py
pytest nothing.py --uc
- name: Check which Chrome binaries exist
run: |
python -c "import os; print(os.path.exists('/usr/bin/google-chrome'))"
python -c "import os; print(os.path.exists('/bin/google-chrome-stable'))"
python -c "import os; print(os.path.exists('/bin/chromium-browser'))"
python -c "import os; print(os.path.exists('/bin/chromium'))"
- name: Display Chrome binary that's used
run: |
python -c "from seleniumbase.core import detect_b_ver; print(detect_b_ver.get_binary_location('google-chrome'))"
python -c "from seleniumbase import undetected; print(undetected.find_chrome_executable())"
- name: Make sure pytest with sb is working
run: |
echo "def test_0(sb): pass" > verify_sb.py
pytest verify_sb.py
- name: Run python raw_chatgpt.py --debug
run: |
python raw_chatgpt.py --debug
# - name: Run python raw_iphey.py --debug
# run: |
# python raw_iphey.py --debug
#- name: Run python raw_chatgpt_gha.py --debug
# env:
# proxy_1: ${{ secrets.PROXY_1 }}
# run: |
# python raw_chatgpt_gha.py
- name: Run python raw_handle_alerts.py --xvfb
run: |
python raw_handle_alerts.py --xvfb
- name: Run python raw_ipify.py
run: |
python raw_ipify.py
#- name: Run python raw_ipify_gha.py
# env:
# proxy_1: ${{ secrets.PROXY_1 }}
# run: |
# python raw_ipify_gha.py
#- name: Run python raw_reddit.py
# run: |
# python raw_reddit.py
- name: Upload screenshots
uses: actions/upload-artifact@v6
with:
name: seleniumbase-screenshots
path: |
./latest_logs/