2024-03-08 14:37:17 +01:00
|
|
|
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:
|
2024-03-08 14:37:17 +01:00
|
|
|
static-checks:
|
2022-02-25 19:39:10 +01:00
|
|
|
runs-on: ubuntu-latest
|
2024-03-08 10:51:01 +01:00
|
|
|
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:
|
2024-03-08 23:51:44 +01:00
|
|
|
- uses: actions/checkout@v4
|
2024-03-07 17:28:05 +01:00
|
|
|
- name: Analysing the code with ruff
|
2022-02-25 19:39:10 +01:00
|
|
|
run: |
|
2024-03-08 22:47:13 +01:00
|
|
|
set -e
|
2024-03-07 17:28:05 +01:00
|
|
|
pip install -r test-requirements.txt
|
|
|
|
ruff format --check
|
2024-03-08 22:47:13 +01:00
|
|
|
ruff check
|
2024-03-09 16:03:02 +01:00
|
|
|
- name: Analysing the code with pylint
|
|
|
|
run: |
|
2024-03-09 16:14:34 +01:00
|
|
|
pylint podman_compose.py
|