From 9f14cf99f1cf758b50d9646edbe36e24645a0e3a Mon Sep 17 00:00:00 2001 From: Felix Dreissig Date: Sat, 25 May 2024 14:23:40 +0200 Subject: [PATCH] Use Debian Bookworm and Python 3.11 everywhere in CI and devcontainer --- .devcontainer.json | 2 +- .github/workflows/ci.yml | 14 ++++---------- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/.devcontainer.json b/.devcontainer.json index 3ce306f..99d53b1 100644 --- a/.devcontainer.json +++ b/.devcontainer.json @@ -1,5 +1,5 @@ { - "image": "python:3.9-alpine", + "image": "python:3.11-alpine", "updateContentCommand": "apk --no-cache add git curl build-base jpeg-dev zlib-dev iputils-ping", "postCreateCommand": "pip3 install --editable .[dev] && make dev", "customizations": { diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 692c96b..1da0ea2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,7 @@ jobs: lint: name: Lint soure code runs-on: ubuntu-latest - container: python:3.11-bullseye + container: python:3.11-bookworm steps: - uses: actions/checkout@v3 - run: pip install -e .[dev] @@ -18,7 +18,7 @@ jobs: test_tox: name: Test with Tox runs-on: ubuntu-latest - container: python:3.11-bullseye + container: python:3.11-bookworm permissions: # Required for "EnricoMi/publish-unit-test-result-action" checks: write @@ -58,14 +58,11 @@ jobs: build_deb_package: name: Build Debian package runs-on: ubuntu-latest - container: debian:bullseye + container: debian:bookworm steps: - uses: actions/checkout@v3 - - run: echo 'deb http://deb.debian.org/debian/ bullseye-backports main' >> /etc/apt/sources.list - run: apt-get --yes update - run: apt-get --yes install --no-install-recommends devscripts dpkg-dev equivs - # It's a bit ugly to do this explicitly, but we really need Django from backports - - run: apt-get --yes install -t bullseye-backports python3-django # Add `--yes` to mk-build-deps' default options for apt-get - run: mk-build-deps --install --tool 'apt-get --yes -o Debug::pkgProblemResolver=yes --no-install-recommends' debian/control - run: dpkg-buildpackage --unsigned-changes --unsigned-buildinfo @@ -81,17 +78,14 @@ jobs: test_debian: name: Test with Debian runs-on: ubuntu-latest - container: debian:bullseye + container: debian:bookworm needs: build_deb_package steps: - uses: actions/checkout@v3 - uses: actions/download-artifact@v3 with: name: deb-package - - run: echo 'deb http://deb.debian.org/debian/ bullseye-backports main' >> /etc/apt/sources.list - run: apt-get --yes update - # It's a bit ugly to do this explicitly, but we really need Django from backports - - run: apt-get --yes install -t bullseye-backports python3-django # Install our package in order to install its dependencies - run: apt-get --yes install --no-install-recommends ./ctf-gameserver_*.deb - run: apt-get --yes install make curl unzip python3-pytest python3-pytest-cov