From: Daan De Meyer Date: Wed, 23 Apr 2025 13:17:33 +0000 (+0200) Subject: ci: Use mkosi in linter workflow X-Git-Tag: v258-rc1~752^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9e3d048bd0ce74b6285b47c8328de60d0ae63827;p=thirdparty%2Fsystemd.git ci: Use mkosi in linter workflow Let's reuse the mkosi tools tree to get all the tools we need instead of pulling them from pypi. --- diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 0907e4358b1..032c010b7d0 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -36,29 +36,36 @@ jobs: VALIDATE_ALL_CODEBASE: false VALIDATE_GITHUB_ACTIONS: true + - uses: systemd/mkosi@dbb4020beee2cdf250f93a425794f1cf8b0fe693 + - name: Check that tabs are not used in Python code run: sh -c '! git grep -P "\\t" -- src/boot/generate-hwids-section.py src/ukify/ukify.py test/integration-tests/integration-test-wrapper.py' - - name: Install ruff and mypy + - name: Build tools tree run: | - python3 -m pip install --break-system-packages --upgrade setuptools wheel pip - python3 -m pip install --break-system-packages mypy types-Pillow ruff + tee mkosi/mkosi.local.conf <