Update to latest version of ODC #155
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| name: Integration Test | |
| on: | |
| pull_request: | |
| branches: | |
| - develop | |
| paths: | |
| - '.github/workflows/integration-test.yml' | |
| - 'docker/**' | |
| push: | |
| branches: | |
| - develop | |
| paths: | |
| - '.github/workflows/integration-test.yml' | |
| - 'docker/**' | |
| release: | |
| types: [published] | |
| permissions: | |
| id-token: write | |
| contents: read | |
| pull-requests: write # Required for Sandbox image packages comment bot | |
| jobs: | |
| integration-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: git checkout dea-sandbox | |
| uses: actions/checkout@v3 | |
| with: | |
| path: dea-sandbox | |
| - name: git checkout dea-notebooks | |
| uses: actions/checkout@v3 | |
| with: | |
| repository: GeoscienceAustralia/dea-notebooks | |
| path: dea-notebooks | |
| ref: stable | |
| - name: Provision database connection used in DEA Notebooks integration tests | |
| uses: GeoscienceAustralia/dea-notebooks/.github/actions/test_setup@develop | |
| with: | |
| pull_image_optional: "false" | |
| - name: Start docker compose | |
| run: | | |
| sudo chown -R 1000:100 ./dea-notebooks | |
| 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<<EOF' | |
| cat ./dea-sandbox/integration-testing/requirements.txt | |
| echo EOF | |
| } >> "$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 | |
| docker compose exec -T sandbox ./dea-notebooks/Tests/test_notebooks.sh |