Fixing tests action

This commit is contained in:
Karim shoair
2024-11-05 02:04:49 +02:00
parent e594bba0c4
commit 3b25a248fc
3 changed files with 7 additions and 11 deletions
+4 -6
View File
@@ -7,7 +7,10 @@ concurrency:
jobs:
tests:
timeout-minutes: 60
runs-on: ${{ matrix.os }}
container:
image: mcr.microsoft.com/playwright/python:v1.48.0-jammy
strategy:
fail-fast: false
matrix:
@@ -43,12 +46,7 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Playwright Dependencies
run: |
pip install playwright
playwright install chromium
playwright install-deps chromium
cache: 'pip'
- name: Install Camoufox Dependencies
run: |
+3 -3
View File
@@ -1,6 +1,6 @@
pytest
pytest>=2.8.0,<9
pytest-cov
playwright
camoufox
pytest-httpbin
pytest-playwright
pytest-httpbin==2.1.0
httpbin~=0.10.0
-2
View File
@@ -12,8 +12,6 @@ changedir = tests
deps =
-r{toxinidir}/tests/requirements.txt
commands =
playwright install chromium
playwright install-deps chromium
camoufox fetch --browserforge
pytest --cov=scrapling --cov-report=xml