Skip to content

Commit

Permalink
Update to Python 3.11
Browse files Browse the repository at this point in the history
JIRA: RHELWF-9772
  • Loading branch information
hluk committed Sep 11, 2023
1 parent 3bc630e commit b3d171c
Show file tree
Hide file tree
Showing 5 changed files with 192 additions and 187 deletions.
27 changes: 14 additions & 13 deletions .github/workflows/gating.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
name: Gating

on:
"on":
pull_request:
push:
workflow_dispatch:
Expand All @@ -12,12 +13,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: "3.9"
python-version: "3.11"

- name: Install dependencies
run: |
Expand All @@ -39,7 +40,7 @@ jobs:
coveralls --service=github
- name: Set up Python for documentation build
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: "3.8"

Expand Down Expand Up @@ -73,12 +74,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: "3.9"
python-version: "3.11"

- name: Install dependencies
run: |
Expand All @@ -97,9 +98,9 @@ jobs:
- Dockerfile

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: hadolint/hadolint-action@v1.5.0
- uses: hadolint/hadolint-action@v3.1.0
with:
dockerfile: ${{ matrix.dockerfile }}
# Ignore list:
Expand All @@ -117,12 +118,12 @@ jobs:
GH_REGISTRY: ghcr.io/${{ github.actor }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: "3.9"
python-version: "3.11"

- name: Install dependencies
run: |
Expand Down
12 changes: 8 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM registry.access.redhat.com/ubi8/ubi:8.7 as builder
FROM registry.fedoraproject.org/fedora:38 as builder

# hadolint ignore=DL3033,DL4006,SC2039,SC3040
RUN set -exo pipefail \
Expand All @@ -7,14 +7,18 @@ RUN set -exo pipefail \
&& yum install -y \
--setopt install_weak_deps=false \
--nodocs \
python39 \
--disablerepo=* \
--enablerepo=fedora,updates \
python3 \
# install runtime dependencies
&& yum install -y \
--installroot=/mnt/rootfs \
--releasever=8 \
--releasever=38 \
--setopt install_weak_deps=false \
--nodocs \
python39 \
--disablerepo=* \
--enablerepo=fedora,updates \
python3 \
&& yum --installroot=/mnt/rootfs clean all \
&& rm -rf /mnt/rootfs/var/cache/* /mnt/rootfs/var/log/dnf* /mnt/rootfs/var/log/yum.* \
# https://python-poetry.org/docs/master/#installing-with-the-official-installer
Expand Down
Loading

0 comments on commit b3d171c

Please sign in to comment.