mirror of
https://github.com/containers/podman-compose.git
synced 2025-03-02 01:01:32 +01:00
This ensures a stable environment for tests even when ubuntu-latest changes. Also, the dependency on setup-python action has been removed. That action supports only Ubuntu and limited architectures. Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
21 lines
512 B
YAML
21 lines
512 B
YAML
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@v3
|
|
- name: Analysing the code with ruff
|
|
run: |
|
|
pip install -r test-requirements.txt
|
|
ruff format --check
|