Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
wartraxx51 committed Dec 20, 2024
1 parent e892c64 commit 16f2581
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -906,18 +906,16 @@ jobs:
git config --global --add safe.directory '*' && \
git config --global credential.usehttppath true && \
git config --global credential.helper /usr/local/bin/infrahub-git-credential"
- name: "Setup Python environment"
run: |
poetry config virtualenvs.create true --local
poetry env use 3.12
- name: "Set environment variables"
run: echo INFRAHUB_BUILD_NAME=infrahub-${{ runner.name }} >> $GITHUB_ENV
- name: "Set environment variables"
run: echo INFRAHUB_IMAGE_VER=local-${{ runner.name }}-${{ github.sha }} >> $GITHUB_ENV
- name: "Clear docker environment"
run: docker compose -p $INFRAHUB_BUILD_NAME down -v --remove-orphans --rmi local
- name: "Build container"
run: "inv dev.build"
run: "poetry run inv dev.build"
- name: "Setup Python environment"
run: |
poetry config virtualenvs.create true --local
poetry env use 3.12
- name: "Tag image for tests"
run: |
echo "Tagging image ${INFRAHUB_IMAGE_VER} as local"
Expand Down
4 changes: 1 addition & 3 deletions development/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,4 @@ RUN poetry install --no-interaction --no-ansi --no-root --no-directory && \
# Copy in the rest of the source code and install the project
# --------------------------------------------
COPY . ./
RUN poetry install --no-interaction --no-ansi

RUN pip install .
RUN poetry install --no-interaction --no-ansi

0 comments on commit 16f2581

Please sign in to comment.