Skip to content

Commit

Permalink
Add more env output in the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cscollett committed Aug 30, 2024
1 parent bcc7bfd commit 33640b8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/docker-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,10 @@ jobs:
WORKFLOW_RUN_ID: ${{ github.run_id }}
run: |
python summary.py > summary_report.txt
cat summary_report.txt
- name: Upload Summary Report Artifact
uses: actions/upload-artifact@v3
with:
name: test-summary-report
path: summary_report.txt
# - name: Upload Summary Report Artifact
# uses: actions/upload-artifact@v3
# with:
# name: test-summary-report
# path: summary_report.txt
14 changes: 9 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,16 @@ FROM poetry AS build
COPY pyproject.toml poetry.lock ./
RUN poetry install --no-root --without dev && rm -rf ${POETRY_CACHE_DIR};

# FROM poetry AS build-minor-update
# # Install minor version updates in the absence of poetry.lock file
# COPY pyproject.toml poetry.lock ./
# RUN poetry install --no-root --without dev && rm -rf ${POETRY_CACHE_DIR};

FROM build AS test
# Install dev dependencies
RUN poetry install --only dev --no-root && rm -rf ${POETRY_CACHE_DIR};
COPY . .
# Run tests
USER app
RUN poetry run pytest tests
# Print environment information
RUN poetry run uname -a
RUN poetry run python --version
RUN poetry run pip list

FROM poetry AS build-unlocked-test
Expand All @@ -58,6 +56,9 @@ COPY . .
# Run tests
USER app
RUN poetry run pytest tests
# Print environment information
RUN poetry run uname -a
RUN poetry run python --version
RUN poetry run pip list

FROM poetry AS build-latest-test
Expand All @@ -68,6 +69,9 @@ COPY . .
# Run tests
USER app
RUN poetry run pytest tests
# Print environment information
RUN poetry run uname -a
RUN poetry run python --version
RUN poetry run pip list

FROM base AS production
Expand Down

0 comments on commit 33640b8

Please sign in to comment.