Skip to content

Commit

Permalink
check if tests work
Browse files Browse the repository at this point in the history
  • Loading branch information
mfleader committed Jun 9, 2024
1 parent 3b6266e commit 455284f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 21 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ RUN python3.9 -m pip install poetry \
&& python3.9 -m poetry export -f requirements.txt --output requirements.txt --without-hashes

# run tests
# FIXME cannot execute tests without a kubeconfig and kubernetes cluster
# COPY tests /app/tests
# RUN pip3 install coverage
# RUN python3.9 -m coverage run tests/test_arcaflow_plugin_kill_pod.py
# RUN python3.9 -m coverage html -d /htmlcov --omit=/usr/local/*
# FIXME cannot execute tests without a kind cluster
COPY tests /app/tests
RUN pip3 install coverage
RUN python3.9 -m coverage run tests/test_arcaflow_plugin_kill_pod.py
RUN python3.9 -m coverage html -d /htmlcov --omit=/usr/local/*

#final image
FROM quay.io/arcalot/arcaflow-plugin-baseimage-python-osbase:0.4.0
Expand All @@ -34,7 +34,7 @@ COPY arcaflow_plugin_kill_pod.py /app

RUN python3.9 -m pip install -r requirements.txt

ENTRYPOINT ["python3", "arcaflow_plugin_kill_pod.py"]
#ENTRYPOINT ["python3", "arcaflow_plugin_kill_pod.py"]
CMD []

LABEL org.opencontainers.image.source="https://github.com/redhat-chaos/arcaflow-plugin-kill-pod"
Expand Down
27 changes: 13 additions & 14 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ include = [
[tool.poetry.dependencies]
python = "^3.9"
arcaflow-plugin-sdk = "0.14.0"
kubernetes = "^26.1.0"
kubernetes = "^28"

[tool.poetry.dev-dependencies]
coverage = "^6.5.0"
Expand Down

0 comments on commit 455284f

Please sign in to comment.