diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index fb9191d..48d2ce2 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -22,6 +22,7 @@ on: permissions: id-token: write contents: read + pull-requests: write # Required for Sandbox image packages comment bot jobs: integration-test: @@ -56,6 +57,31 @@ jobs: cd ./dea-sandbox/integration-testing CURRENT_UID=1000:100 docker-compose up -d + - name: Extract package versions + run: | + cd ./dea-sandbox/integration-testing + docker-compose exec -T sandbox cat /tmp/requirements.txt > requirements.txt + + - name: Read package versions + id: versions + run: | + { + echo 'content<> "$GITHUB_OUTPUT" + + # Post package versions as a comment on the PR + - name: Post package versions as a comment + uses: mshick/add-pr-comment@v2 + if: github.event_name == 'pull_request' + with: + message: | + ### Installed packages: + ``` + ${{ steps.versions.outputs.content }} + ``` + - name: Set up Datacube and Test run: | cd ./dea-sandbox/integration-testing diff --git a/docker/Dockerfile b/docker/Dockerfile index 0a7ac52..8e9b01e 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -51,7 +51,7 @@ RUN echo "Enable server extensions" \ COPY assets/sync_repo assets/jupyterhub-singleuser /usr/local/bin/ COPY assets/overrides.json /env/share/jupyter/lab/settings/ -RUN pip list --format=freeze +RUN pip list --format=freeze > /tmp/requirements.txt WORKDIR "/home/$nb_user" ENTRYPOINT ["/env/bin/tini", "--"]