feat(http): add bounded proxy pool failover to HTTP test tool

This commit is contained in:
Sycun committed 2026-10-31 23:29:48 +08:00
1 parent 697e875fa4
commit 5d7cb1ff5d
11 files changed
+987 -5

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
name: HTTP proxy pool
on:
push:
paths: ['tools/http-framework-test.yaml', 'scripts/test_http_proxy_pool.py', 'requirements.txt', '.github/workflows/http-proxy-pool.yml']
pull_request:
paths: ['tools/http-framework-test.yaml', 'scripts/test_http_proxy_pool.py', 'requirements.txt', '.github/workflows/http-proxy-pool.yml']
permissions:
contents: read
jobs:
proxy-pool:
strategy:
fail-fast: false
matrix:
httpx: ['0.27.0', '0.28.1']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- run: python -m pip install 'httpx[http2,socks]==${{ matrix.httpx }}' PyYAML
- run: python -m unittest discover -s scripts -p 'test_http_proxy_pool.py' -v