File: static-checks.yml

package info (click to toggle)
podman-compose 1.5.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,004 kB
  • sloc: python: 10,946; sh: 107; javascript: 48; makefile: 13
file content (32 lines) | stat: -rw-r--r-- 782 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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@v4
    - 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