mirror of
https://github.com/containers/podman-compose.git
synced 2024-11-22 16:03:16 +01:00
Merge pull request #873 from p12tic/github-run-container
github: Run actions on python:3.11-bookworm
This commit is contained in:
commit
16a90e2bce
9
.github/workflows/static-checks.yml
vendored
9
.github/workflows/static-checks.yml
vendored
@ -7,12 +7,13 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
static-checks:
|
static-checks:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: docker.io/library/python:3.11-bookworm
|
||||||
|
# cgroupns needed to address the following error:
|
||||||
|
# write /sys/fs/cgroup/cgroup.subtree_control: operation not supported
|
||||||
|
options: --privileged --cgroupns=host
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Set up Python 3.10
|
|
||||||
uses: actions/setup-python@v5
|
|
||||||
with:
|
|
||||||
python-version: "3.11"
|
|
||||||
- name: Analysing the code with ruff
|
- name: Analysing the code with ruff
|
||||||
run: |
|
run: |
|
||||||
pip install -r test-requirements.txt
|
pip install -r test-requirements.txt
|
||||||
|
13
.github/workflows/test.yml
vendored
13
.github/workflows/test.yml
vendored
@ -7,16 +7,17 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: docker.io/library/python:3.11-bookworm
|
||||||
|
# cgroupns needed to address the following error:
|
||||||
|
# write /sys/fs/cgroup/cgroup.subtree_control: operation not supported
|
||||||
|
options: --privileged --cgroupns=host
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Set up Python 3.10
|
|
||||||
uses: actions/setup-python@v5
|
|
||||||
with:
|
|
||||||
python-version: "3.10"
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt update && sudo apt install -y podman
|
set -e
|
||||||
|
apt update && apt install -y podman
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
||||||
if [ -f test-requirements.txt ]; then pip install -r test-requirements.txt; fi
|
if [ -f test-requirements.txt ]; then pip install -r test-requirements.txt; fi
|
||||||
|
Loading…
Reference in New Issue
Block a user