File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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' }}
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
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 : |
Original file line number Diff line number Diff line change 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
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 :
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments