diff --git a/.github/actions/prepare-python/action.yml b/.github/actions/prepare-python/action.yml index 528d6d1a..aa20e89f 100644 --- a/.github/actions/prepare-python/action.yml +++ b/.github/actions/prepare-python/action.yml @@ -13,15 +13,8 @@ runs: - name: "Setup python" uses: actions/setup-python@v5 with: - python-version: 3.9 - - - name: "Check for cached dependencies" - uses: actions/cache@v4 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- + python-version: 3.12 + cache: 'pip' - name: "Install and upgrade pip" shell: bash diff --git a/.github/workflows/check-todays-snapshot.yml b/.github/workflows/check-todays-snapshot.yml index 511bead9..07df5a58 100644 --- a/.github/workflows/check-todays-snapshot.yml +++ b/.github/workflows/check-todays-snapshot.yml @@ -41,7 +41,6 @@ jobs: packages: "llvm" runs-on: ubuntu-latest - container: fedora:39 steps: - name: Setup Copr config file env: @@ -54,7 +53,7 @@ jobs: - name: Install Copr CLI run: | - dnf install -y copr-cli diffutils pcre2-tools jq + sudo apt-get install -y lsb-release diffutils pcre2-utils jq - uses: actions/checkout@v4 diff --git a/snapshot_manager/snapshot_manager/build_status.py b/snapshot_manager/snapshot_manager/build_status.py index fe5156e5..336b4485 100644 --- a/snapshot_manager/snapshot_manager/build_status.py +++ b/snapshot_manager/snapshot_manager/build_status.py @@ -82,9 +82,7 @@ def list(cls): return list(map(lambda c: c.value, cls)) -# TODO(kwk) once it works, add the kw_only argument -# @dataclasses.dataclass(kw_only=True, order=True) -@dataclasses.dataclass(order=True) +@dataclasses.dataclass(kw_only=True, order=True) class BuildState: """An error describes what and why some package failed to build in a particular chroot.""" diff --git a/snapshot_manager/snapshot_manager/config.py b/snapshot_manager/snapshot_manager/config.py index ca3ffc54..11772c84 100644 --- a/snapshot_manager/snapshot_manager/config.py +++ b/snapshot_manager/snapshot_manager/config.py @@ -6,9 +6,7 @@ import dataclasses -# TODO(kwk) once it works, add the kw_only argument -# @dataclasses.dataclass(kw_only=True) -@dataclasses.dataclass() +@dataclasses.dataclass(kw_only=True) class Config: chroot_pattern: str = r"^fedora-(rawhide|[0-9]+)" """Regular expression to select chroots from all chroots currently supported on Copr."""