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

ops: update tests workflow accordingly

Karim shoair563875555835
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index ecdfa89..9401174 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -58,7 +58,7 @@ jobs:
- name: Install all browsers dependencies
run: |
python3 -m pip install --upgrade pip
- python3 -m pip install playwright==1.56.0 patchright==1.56.0 camoufox>=0.4.11
+ python3 -m pip install playwright==1.56.0 patchright==1.56.0
- name: Get Playwright version
id: playwright-version
@@ -90,34 +90,6 @@ jobs:
fi
python3 -m playwright install-deps chromium firefox
- - name: Get Camoufox version
- id: camoufox-version
- run: |
- CAMOUFOX_VERSION=$(python3 -c "import importlib.metadata; print(importlib.metadata.version('camoufox'))")
- echo "version=$CAMOUFOX_VERSION" >> $GITHUB_OUTPUT
- echo "Camoufox version: $CAMOUFOX_VERSION"
-
- - name: Retrieve Camoufox browser from cache if any
- id: camoufox-cache
- uses: actions/cache@v4
- with:
- path: |
- ~/.cache/camoufox
- ~/Library/Caches/camoufox
- key: ${{ runner.os }}-camoufox-${{ steps.camoufox-version.outputs.version }}-v1
- restore-keys: |
- ${{ runner.os }}-camoufox-${{ steps.camoufox-version.outputs.version }}-
- ${{ runner.os }}-camoufox-
-
- - name: Install Camoufox browser
- run: |
- echo "Cache hit: ${{ steps.camoufox-cache.outputs.cache-hit }}"
- if [ "${{ steps.camoufox-cache.outputs.cache-hit }}" != "true" ]; then
- python3 -m camoufox fetch --browserforge
- else
- echo "Skipping fetch - using cached Camoufox browser"
- fi
-
# Cache tox environments
- name: Cache tox environments
uses: actions/cache@v4