-
Notifications
You must be signed in to change notification settings - Fork 44
83 lines (80 loc) · 2.64 KB
/
Copy pathpython-package-8.yml
File metadata and controls
83 lines (80 loc) · 2.64 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
name: CI build 8 - (Ubuntu)
on:
schedule:
- cron: "42 */4 * * *"
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
pip install --upgrade playwright
- 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
- 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: Run python playwright/raw_copilot_sync.py
run: |
python playwright/raw_copilot_sync.py
- name: Run python playwright/raw_nike_sync.py
run: |
python playwright/raw_nike_sync.py
- name: Run python playwright/raw_seatgeek_sync.py
run: |
python playwright/raw_seatgeek_sync.py
- name: Run python playwright/raw_walmart_sync.py
run: |
python playwright/raw_walmart_sync.py
- name: Run python playwright/raw_gas_info_sync.py --debug
run: |
python playwright/raw_gas_info_sync.py --debug
- name: Upload screenshots
uses: actions/upload-artifact@v6
with:
name: seleniumbase-screenshots
path: |
./latest_logs/