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:
|
2022-10-17 17:15:57 +02:00
|
|
|
- uses: actions/checkout@v3
|
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
|