Skip to content

Commit

Permalink
Merge pull request kapicorp#1116 from kapicorp/test/kapitan_python_3.11
Browse files Browse the repository at this point in the history
Update python test versions and python image to 3.11
  • Loading branch information
ademariag authored Jan 17, 2024
2 parents feb2c04 + 2248daf commit ef31ba9
Show file tree
Hide file tree
Showing 5 changed files with 384 additions and 423 deletions.
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

0 comments on commit ef31ba9

Please sign in to comment.