ci: sonar fixes (#5594)

This commit is contained in:
Dave Lane authored and GitHub committed 2026-09-01 19:57:46 -04:00
1 parent 9f7daa5e5a
commit 0af7c7dd65
6 files changed
+55 -20

No files matched your search

+10 -5
View File
@@ -61,10 +61,15 @@ jobs:
- name: Sync Python tools
run: |
uv sync --locked --only-group flatpak \
--python "${PYTHON_VERSION}" \
--no-python-downloads \
uv_sync_args=(
--locked
--only-group flatpak
--python "${PYTHON_VERSION}"
--no-python-downloads
--no-install-project
)
# uv.lock pins external artifacts; reviewed local Flatpak generator build hooks are required.
uv sync "${uv_sync_args[@]}" # NOSONAR(githubactions:S8541, githubactions:S8544)
- name: Setup Dependencies Linux Flatpak
run: |
@@ -88,7 +93,7 @@ jobs:
- name: flatpak node generator
# https://github.com/flatpak/flatpak-builder-tools/blob/master/node/README.md
run: uv run --locked --no-sync python -m flatpak_node_generator npm package-lock.json
run: uv run --locked --no-build --no-sync python -m flatpak_node_generator npm package-lock.json
- name: Debug generated-sources.json
run: cat generated-sources.json
@@ -105,7 +110,7 @@ jobs:
--no-header \
--output-file glad-requirements.txt
uv run --locked --no-sync python \
uv run --locked --no-build --no-sync python \
./packaging/linux/flatpak/deps/flatpak-builder-tools/pip/flatpak-pip-generator.py \
--runtime="org.kde.Sdk//${KDE_PLATFORM_VERSION}" \
--output glad-dependencies \
+16 -4
View File
@@ -105,11 +105,23 @@ jobs:
set -e
# Keep FreeBSD off Sunshine's default dependency path: lizardbyte-common[c]
# includes clang-format, which has no FreeBSD wheel and is slow to build.
uv sync --locked --only-group glad --python "/usr/local/bin/python${PYTHON_VERSION}" \
--no-python-downloads --no-install-project
uv sync --project third-party/lizardbyte-common --locked --only-group test-c \
set -- \
--locked \
--only-group glad \
--python "/usr/local/bin/python${PYTHON_VERSION}" \
--no-python-downloads --no-install-project
--no-python-downloads \
--no-install-project
# uv.lock pins external artifacts; the reviewed vendored glad2 build hook is required.
uv sync "$@" # NOSONAR(githubactions:S8541, githubactions:S8544)
set -- \
--project third-party/lizardbyte-common \
--locked \
--only-group test-c \
--python "/usr/local/bin/python${PYTHON_VERSION}" \
--no-python-downloads \
--no-install-project
# uv.lock pins the source artifact; FreeBSD must build lxml because no wheel is available.
uv sync "$@" # NOSONAR(githubactions:S8541, githubactions:S8544)
# fix git safe.directory issues
git config --global --add safe.directory "*"
+8 -3
View File
@@ -111,9 +111,14 @@ jobs:
- name: Sync Python tools
run: |
uv sync --locked \
--python "${PYTHON_VERSION}" \
--no-python-downloads --no-install-project
uv_sync_args=(
--locked
--python "${PYTHON_VERSION}"
--no-python-downloads
--no-install-project
)
# uv.lock pins external artifacts; the reviewed local lizardbyte-common build hook is required.
uv sync "${uv_sync_args[@]}" # NOSONAR(githubactions:S8541, githubactions:S8544)
- name: Configure
env:
+8 -4
View File
@@ -128,7 +128,7 @@ jobs:
tarball="${pkg}-${version}-any.pkg.tar.zst"
# download working version
wget "https://repo.msys2.org/mingw/${MATRIX_MSYSTEM}/${tarball}"
wget --max-redirect=0 "https://repo.msys2.org/mingw/${MATRIX_MSYSTEM}/${tarball}"
tarballs="${tarballs} ${tarball}"
done
@@ -215,9 +215,13 @@ jobs:
MSYS2_PATH_TYPE: inherit
UV_PYTHON: ${{ steps.setup-python.outputs.python-path }}
run: |
uv sync --locked \
--no-python-downloads \
uv_sync_args=(
--locked
--no-python-downloads
--no-install-project
)
# uv.lock pins external artifacts; the reviewed local lizardbyte-common build hook is required.
uv sync "${uv_sync_args[@]}" # NOSONAR(githubactions:S8541, githubactions:S8544)
- name: Build Windows
shell: msys2 {0}
@@ -385,7 +389,7 @@ jobs:
env:
MSYS2_PATH_TYPE: inherit
run: |
uv run --project .. --locked --no-sync gcovr . -r ../src \
uv run --project .. --locked --no-build --no-sync gcovr . -r ../src \
--exclude-noncode-lines \
--exclude-throw-branches \
--exclude-unreachable-branches \