diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 683ff2b..7e1b9c5 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -23,8 +23,12 @@ jobs: git checkout --detach FETCH_HEAD - name: Install runner Python and test dependencies run: | - apt-get update - DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends python3 python3-pytest python3-openpyxl + for apt_source in /etc/apt/sources.list /etc/apt/sources.list.d/*.sources; do + [ -f "$apt_source" ] || continue + sed -i 's|http://deb.debian.org|https://deb.debian.org|g' "$apt_source" + done + apt-get -o Acquire::Retries=2 -o APT::Update::Error-Mode=any update + DEBIAN_FRONTEND=noninteractive apt-get -o Acquire::Retries=2 install -y --no-install-recommends python3 python3-pytest python3-openpyxl python3 --version - name: Compile application and build helpers run: python3 -m compileall -q src packaging tools