Skip to content

Commit 5427d65

Browse files
committed
minor
1 parent a95a06e commit 5427d65

3 files changed

Lines changed: 6 additions & 11 deletions

File tree

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
name: Run tests (reusable)
2525
uses: ./.github/workflows/tests.yml
2626
with:
27-
python-version: "3.12"
27+
python-version: "3.13"
2828

2929
build-docs:
3030
if: ${{ github.event.inputs.target == 'docs' || github.event.inputs.target == 'all' }}
@@ -35,7 +35,7 @@ jobs:
3535
- uses: actions/checkout@v4
3636
- uses: actions/setup-python@v5
3737
with:
38-
python-version: "3.12"
38+
python-version: "3.13"
3939
cache: pip
4040
cache-dependency-path: |
4141
requirements.txt
@@ -76,7 +76,7 @@ jobs:
7676
- uses: actions/checkout@v4
7777
- uses: actions/setup-python@v5
7878
with:
79-
python-version: "3.12"
79+
python-version: "3.13"
8080
cache: pip
8181
- name: Build artifacts (PEP 517)
8282
run: |

.github/workflows/tests.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Set up Python
3131
uses: actions/setup-python@v5
3232
with:
33-
python-version: ${{ inputs.python-version || '3.12' }}
33+
python-version: ${{ inputs.python-version || '3.13' }}
3434
cache: "pip"
3535
cache-dependency-path: |
3636
requirements.txt
@@ -40,12 +40,7 @@ jobs:
4040
run: |
4141
python -m pip install --upgrade pip
4242
pip install -r requirements.txt
43-
sudo apt install -y libgtk-3-0 libx11-xcb1 libasound2t64
4443
python -m camoufox fetch
45-
sudo apt install xvfb
46-
47-
- name: Debug proxy
48-
run: echo "HTTPS_PROXY is $HTTPS_PROXY"
4944
5045
- name: Run tests
5146
env:

pyaterochka_api/manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class PyaterochkaAPI:
3030
Клиент Пятерочки.
3131
"""
3232

33-
timeout_ms: float = 10000.0
33+
timeout_ms: float = 20000.0
3434
"""Время ожидания ответа от сервера в миллисекундах."""
3535
headless: bool = True
3636
"""Запускать браузер в headless режиме?"""
@@ -111,7 +111,7 @@ async def _warmup(self) -> None:
111111
await self.page.wait_for_load_state("networkidle", timeout=self.timeout_ms)
112112
ok = True
113113
except PWTimeoutError:
114-
await self.page.reload(wait_until="commit")
114+
await self.page.reload(wait_until="commit", timeout=self.timeout_ms)
115115
if not ok:
116116
raise RuntimeError(self.page.content)
117117

0 commit comments

Comments
 (0)