Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update python test versions and python image to 3.11 #1116

Merged
merged 6 commits into from
Jan 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,11 @@ body:
attributes:
label: Version (kapitan)
description: |
Which version of python are you using? Kapitan officially supports only version 3.8 and 3.9.
Which version of python are you using? Kapitan officially supports only version 3.10 and 3.11
If you are using an older version of python, please check if the bug still exists with a newer (supported) version.
options:
- '3.8'
- '3.9'
- 3.10 (future)
- "3.11"
- "3.10"
- I use kapitan directly (pip, docker)
multiple: true
validations:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.9'
python-version: '3.10'
- uses: psf/black@main

test:
Expand All @@ -51,7 +51,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.8, 3.9]
python-version: ['3.9', '3.10', '3.11']

steps:
- name: Checkout kapitan recursively
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build the virtualenv for Kapitan
FROM python:3.8-slim AS python-builder
FROM python:3.11-slim AS python-builder
ARG TARGETARCH
ENV TARGETARCH=${TARGETARCH:-amd64}

Expand All @@ -11,7 +11,7 @@ RUN apt-get update \
curl \
build-essential

ENV POETRY_VERSION=1.4.0
ENV POETRY_VERSION=1.7.1
ENV VIRTUAL_ENV=/opt/venv
ENV PATH="$VIRTUAL_ENV/bin:/usr/local/go/bin:${PATH}"
RUN python -m venv $VIRTUAL_ENV \
Expand Down Expand Up @@ -44,7 +44,7 @@ RUN pip install --editable .[test] \


# Final image with virtualenv built in previous step
FROM python:3.8-slim
FROM python:3.11-slim

ENV PATH="/opt/venv/bin:${PATH}"
ENV HELM_CACHE_HOME=".cache/helm"
Expand Down
Loading