Skip to content

Commit

Permalink
Upgrade to python 3.12 and use built-in cache feature
Browse files Browse the repository at this point in the history
  • Loading branch information
kwk committed Mar 19, 2024
1 parent 3fb7f24 commit 7df875b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 17 deletions.
11 changes: 2 additions & 9 deletions .github/actions/prepare-python/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/check-todays-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ jobs:
packages: "llvm"

runs-on: ubuntu-latest
container: fedora:39
steps:
- name: Setup Copr config file
env:
Expand All @@ -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

Expand Down
4 changes: 1 addition & 3 deletions snapshot_manager/snapshot_manager/build_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""

Expand Down
4 changes: 1 addition & 3 deletions snapshot_manager/snapshot_manager/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down

0 comments on commit 7df875b

Please sign in to comment.