Skip to content
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
8 changes: 8 additions & 0 deletions .github/workflows/package-verification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ jobs:
fail-fast: false
matrix:
include:
- platform: "alpine"
python: "3.7.3"
- platform: "alpine"
python: "3.7.4"
- platform: "alpine"
python: "3.7.5"
- platform: "alpine"
python: "3.7"
- platform: "alpine"
Expand All @@ -93,6 +99,8 @@ jobs:
python: "3.13"
- platform: "alpine"
python: "3.14"
- platform: "astralinux_1_7"
python: "3"

env:
BASE_SIGN: "${{ matrix.platform }}-py${{ matrix.python }}"
Expand Down
4 changes: 3 additions & 1 deletion Dockerfile--alpine.tmpl
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
ARG PYTHON_VERSION
ARG PYTHON_VERSION=3.12

# --------------------------------------------- base1
FROM python:${PYTHON_VERSION}-alpine AS base1

ENV PYTHON_BINARY=python3

# --------------------------------------------- final
FROM base1 AS final

Expand Down
29 changes: 29 additions & 0 deletions Dockerfile--astralinux_1_7.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
ARG PG_VERSION=17
ARG PYTHON_VERSION=3

# --------------------------------------------- base1
FROM packpack/packpack:astra-1.7 AS base1

# --------------------------------------------- base2_with_python-3
FROM base1 AS base2_with_python-3
RUN apt install -y python3 python3-dev python3-venv

ENV PYTHON_BINARY=python3

# --------------------------------------------- final
FROM base2_with_python-${PYTHON_VERSION} AS final

RUN useradd -m test

ADD --chown=test:test . /home/test/testgres
WORKDIR /home/test/testgres
RUN mkdir /home/test/testgres/logs
RUN chown -R test:test /home/test/testgres/logs

ENV LANG=C.UTF-8

USER test

ENTRYPOINT sh -c " \
set -eux; \
bash run_tests3.sh;"
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ keywords = [
"test",
]

requires-python = ">=3.7.17"
requires-python = ">=3.7.3"

classifiers = [
"Intended Audience :: Developers",
Expand Down
2 changes: 1 addition & 1 deletion run_tests3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set -eux
# prepare python environment
VENV_PATH="/tmp/testgres_venv"
rm -rf $VENV_PATH
python -m venv "${VENV_PATH}"
${PYTHON_BINARY} -m venv "${VENV_PATH}"
export VIRTUAL_ENV_DISABLE_PROMPT=1
source "${VENV_PATH}/bin/activate"

Expand Down