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: possible fix for sandbox issue with GitHub's CI

Karim shoair9b62b5949069
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 5ed70cd..ebf90a9 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -18,36 +18,41 @@ jobs:
matrix:
include:
- python-version: "3.9"
- os: ubuntu-20.04 # Better sandbox support?
+ os: ubuntu-latest
env:
TOXENV: py
- python-version: "3.10"
- os: ubuntu-20.04 # Better sandbox support?
+ os: ubuntu-latest
env:
TOXENV: py
- python-version: "3.11"
- os: ubuntu-20.04 # Better sandbox support?
+ os: ubuntu-latest
env:
TOXENV: py
- python-version: "3.12"
- os: ubuntu-20.04 # Better sandbox support?
+ os: ubuntu-latest
env:
TOXENV: py
- python-version: "3.13"
- os: ubuntu-20.04 # Better sandbox support?
+ os: ubuntu-latest
env:
TOXENV: py
steps:
- uses: actions/checkout@v4
+ - name: Enable user namespaces
+ run: |
+ echo 'kernel.unprivileged_userns_clone=1' | sudo tee -a /etc/sysctl.conf
+ sudo sysctl -p
+
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: |
- setup.py
+ pyproject.toml
requirements*.txt
tox.ini