Fixing tests action
This commit is contained in:
@@ -7,7 +7,10 @@ concurrency:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
tests:
|
||||||
|
timeout-minutes: 60
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
container:
|
||||||
|
image: mcr.microsoft.com/playwright/python:v1.48.0-jammy
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@@ -43,12 +46,7 @@ jobs:
|
|||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
|
cache: 'pip'
|
||||||
- name: Install Playwright Dependencies
|
|
||||||
run: |
|
|
||||||
pip install playwright
|
|
||||||
playwright install chromium
|
|
||||||
playwright install-deps chromium
|
|
||||||
|
|
||||||
- name: Install Camoufox Dependencies
|
- name: Install Camoufox Dependencies
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
pytest
|
pytest>=2.8.0,<9
|
||||||
pytest-cov
|
pytest-cov
|
||||||
playwright
|
playwright
|
||||||
camoufox
|
camoufox
|
||||||
pytest-httpbin
|
pytest-httpbin==2.1.0
|
||||||
pytest-playwright
|
httpbin~=0.10.0
|
||||||
|
|||||||
@@ -12,8 +12,6 @@ changedir = tests
|
|||||||
deps =
|
deps =
|
||||||
-r{toxinidir}/tests/requirements.txt
|
-r{toxinidir}/tests/requirements.txt
|
||||||
commands =
|
commands =
|
||||||
playwright install chromium
|
|
||||||
playwright install-deps chromium
|
|
||||||
camoufox fetch --browserforge
|
camoufox fetch --browserforge
|
||||||
pytest --cov=scrapling --cov-report=xml
|
pytest --cov=scrapling --cov-report=xml
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user