tests: Change github actions workflow to test with podman 5.4.2
#1152
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Static checks | |
on: | |
- push | |
- pull_request | |
jobs: | |
static-checks: | |
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: | |
- uses: actions/checkout@v5 | |
- name: Install dependencies | |
run: | | |
set -e | |
pip install -r test-requirements.txt | |
- name: Analysing the code using ruff | |
run: | | |
set -e | |
ruff format --check | |
ruff check | |
- name: Analysing the code using mypy | |
run: | | |
set -e | |
mypy . | |
- name: Analysing the code with pylint | |
run: | | |
pylint podman_compose.py |