]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
ci: Centralize package installation in unit-tests job
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 22 Jan 2025 10:08:39 +0000 (11:08 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 22 Jan 2025 13:11:18 +0000 (14:11 +0100)
Also get rid of the microsoft-prod.list hack by just not running
apt-get update anymore which avoids the need to remove the microsoft
repositories.

.github/workflows/ci.yml

index a8c05c8fdf17b2c7872e1c5a1046f9eca1b92904..068c532c8c2cdf3be470eaad62f04471cd702fd6 100644 (file)
@@ -16,10 +16,7 @@ jobs:
 
       - name: Install
         run: |
-          # This is added by default, and it is often broken, but we don't need anything from it
-          sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
-          sudo apt-get update
-          sudo apt-get install pandoc python3-pytest
+          sudo apt-get install --assume-yes --no-install-recommends pandoc python3-pytest shellcheck
           python3 -m pip install --break-system-packages --upgrade setuptools wheel pip
           python3 -m pip install --break-system-packages codespell mypy reuse ruff
           npm install -g pyright
@@ -96,7 +93,6 @@ jobs:
 
       - name: Run shellcheck on scripts
         run: |
-          sudo apt-get update && sudo apt-get install --no-install-recommends shellcheck
           bash -c 'shopt -s globstar; shellcheck bin/mkosi tools/*.sh'
           bin/mkosi completion bash | shellcheck -