Skip to content

🕷️ The BEST Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev

Fixing tests action

Karim shoair3b25a248fcfc
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index d6d6ef6..dc5d690 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -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: |
diff --git a/tests/requirements.txt b/tests/requirements.txt
index fd7ef96..46fd0ec 100644
--- a/tests/requirements.txt
+++ b/tests/requirements.txt
@@ -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
diff --git a/tox.ini b/tox.ini
index fdf42c3..97b9508 100644
--- a/tox.ini
+++ b/tox.ini
@@ -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