ops: possible fix for sandbox issue with GitHub's CI

This commit is contained in:
Karim shoair
2025-06-27 02:26:35 +03:00
parent e535a3fa16
commit 9b62b59490
+11 -6
View File
@@ -18,36 +18,41 @@ jobs:
matrix: matrix:
include: include:
- python-version: "3.9" - python-version: "3.9"
os: ubuntu-20.04 # Better sandbox support? os: ubuntu-latest
env: env:
TOXENV: py TOXENV: py
- python-version: "3.10" - python-version: "3.10"
os: ubuntu-20.04 # Better sandbox support? os: ubuntu-latest
env: env:
TOXENV: py TOXENV: py
- python-version: "3.11" - python-version: "3.11"
os: ubuntu-20.04 # Better sandbox support? os: ubuntu-latest
env: env:
TOXENV: py TOXENV: py
- python-version: "3.12" - python-version: "3.12"
os: ubuntu-20.04 # Better sandbox support? os: ubuntu-latest
env: env:
TOXENV: py TOXENV: py
- python-version: "3.13" - python-version: "3.13"
os: ubuntu-20.04 # Better sandbox support? os: ubuntu-latest
env: env:
TOXENV: py TOXENV: py
steps: steps:
- uses: actions/checkout@v4 - 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 }} - name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5 uses: actions/setup-python@v5
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
cache: 'pip' cache: 'pip'
cache-dependency-path: | cache-dependency-path: |
setup.py pyproject.toml
requirements*.txt requirements*.txt
tox.ini tox.ini