Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
ademariag committed Nov 18, 2023
1 parent ed28ac2 commit dc9ef69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-pip-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ jobs:
- name: Publish to PyPI
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
run: poetry publish --build --dry-run
run: poetry publish --build
12 changes: 3 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 All @@ -29,19 +29,13 @@ RUN curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master
&& rm get_helm.sh


COPY ./MANIFEST.in ./MANIFEST.in
COPY ./pyproject.toml ./pyproject.toml
COPY ./poetry.lock ./poetry.lock
COPY ./README.md ./README.md

# Installs and caches dependencies
RUN poetry install --no-root --extras=gojsonnet

COPY ./kapitan ./kapitan

RUN pip install --editable .[test] \
&& pip install .[gojsonnet]
RUN poetry install --no-root --extras=gojsonnet

RUN --mount=type=bind,source=./,target=./ poetry install

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

0 comments on commit dc9ef69

Please sign in to comment.