podman-compose/.github/workflows/static-checks.yml

26 lines
635 B
YAML
Raw Normal View History

name: Static checks
2022-02-25 19:39:10 +01:00
2022-02-25 19:50:52 +01:00
on:
- push
- pull_request
2022-02-25 19:39:10 +01:00
jobs:
static-checks:
2022-02-25 19:39:10 +01:00
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
2022-02-25 19:39:10 +01:00
steps:
- uses: actions/checkout@v4
- name: Analysing the code with ruff
2022-02-25 19:39:10 +01:00
run: |
set -e
pip install -r test-requirements.txt
ruff format --check
ruff check
- name: Analysing the code with pylint
run: |
pylint podman_compose.py