Skip to content

Update testing-rootuser.yml #11

Update testing-rootuser.yml

Update testing-rootuser.yml #11

name: Test 1217 error - container
on:
push:
branches:
- main
workflow_dispatch:
jobs:
test1:
name: Ubuntu & Container
runs-on: ubuntu-24.04
container:
image: python
env:
PIP_ROOT_USER_ACTION: ignore
strategy:
matrix:
python: [3.11.6]
steps:
- uses: actions/checkout@v4
- name: Install lsb-release
run: |
apt-get update
apt-get install -y lsb-release
- name: Create /etc/lsb-release
run: |
echo "DISTRIB_RELEASE=22.04" | tee -a /etc/lsb-release
- name: Change ownership of /github/home
run: chown -R $(whoami) /github/home
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
cache: 'pip'
cache-dependency-path: 'requirements.txt'
test2:
name: Windows
runs-on: windows-latest
strategy:
matrix:
python: [3.11.6]
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
cache: 'pip'
cache-dependency-path: 'requirements.txt'
# Add any Windows-specific steps here
test3:
name: macOS
runs-on: macos-latest
strategy:
matrix:
python: [3.11.6]
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
cache: 'pip'
cache-dependency-path: 'requirements.txt'
# Add any macOS-specific steps here