Custom PEP (Acceptance) Image Addition #924
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: "CI - Test Templates" | |
| on: | |
| pull_request: | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ludeeus/action-shellcheck@2.0.0 | |
| with: | |
| check_together: 'yes' | |
| env: | |
| SHELLCHECK_OPTS: -e SC1090 -e SC1091 | |
| detect-changes: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| templates: ${{ steps.filter.outputs.changes }} | |
| steps: | |
| - uses: dorny/paths-filter@v2 | |
| id: filter | |
| with: | |
| # BENCH-4080: Re-enable cirrocumulus test | |
| filters: | | |
| jupyter-template: | |
| - './**/jupyter-template/**' | |
| - 'startupscript/**' | |
| jupyter: | |
| - './**/jupyter/**' | |
| - 'startupscript/**' | |
| shiny: | |
| - './**/shiny/**' | |
| - 'startupscript/**' | |
| r-analysis: | |
| - './**/r-analysis/**' | |
| - 'startupscript/**' | |
| vscode: | |
| - './**/vscode/**' | |
| - 'startupscript/**' | |
| jupyter-aou: | |
| - './**/jupyter-aou/**' | |
| - 'startupscript/**' | |
| test: | |
| needs: [detect-changes] | |
| runs-on: ubuntu-latest | |
| continue-on-error: true | |
| if : ${{ needs.detect-changes.outputs.templates != '[]' }} | |
| strategy: | |
| matrix: | |
| templates: ${{ fromJSON(needs.detect-changes.outputs.templates) }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| # Free up disk space by removing unnecessary files, if needed | |
| - name: Maximize build disk space | |
| if: ${{ matrix.templates == 'jupyter-aou' }} | |
| uses: easimon/maximize-build-space@v10 | |
| with: | |
| # This is the amount of space left over, not allocated to the LVM | |
| # volume. We already checked out the repo so we don't need much | |
| root-reserve-mb: 512 | |
| build-mount-path: /var/lib/docker | |
| remove-dotnet: true | |
| remove-android: true | |
| remove-haskell: true | |
| remove-codeql: true | |
| remove-docker-images: true | |
| - name: Restart docker | |
| if: ${{ matrix.templates == 'jupyter-aou' }} | |
| run: sudo service docker restart | |
| - name: Smoke test for '${{ matrix.templates }}' | |
| id: smoke_test | |
| uses: ./.github/actions/smoke-test | |
| with: | |
| template: "${{ matrix.templates }}" |