Use new buckets for training data #839
Workflow file for this run
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: Test render notebooks | |
| # Before merging notebooks, check that they render | |
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| paths: | |
| - ".github/workflows/render-rmds.yml" | |
| - "**.Rmd" | |
| - "!**-live.Rmd" # don't trigger for live-only changes | |
| - "!**/exercise*.Rmd" # or exercise notebooks | |
| - "!**/setup/**.Rmd" # or setup notebooks | |
| - "scripts/make-live.R" | |
| - "scripts/render-live.sh" | |
| jobs: | |
| test-render: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Free disk space | |
| run: | | |
| sudo rm -rf /usr/local/lib/android | |
| sudo rm -rf /usr/share/dotnet | |
| sudo rm -rf /opt/ghc | |
| sudo rm -rf /usr/local/share/boost | |
| sudo rm -rf "$AGENT_TOOLSDIRECTORY" | |
| # Print free disk space | |
| df -h | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Configure AWS Credentials | |
| uses: aws-actions/configure-aws-credentials@v6 | |
| with: | |
| role-to-assume: arn:aws:iam::${{ secrets.AWS_TRAINING_ACCOUNT }}:role/gha-s3-data-readonly-role | |
| role-session-name: githubActionSession | |
| aws-region: us-east-1 | |
| - name: Download data from S3 | |
| env: | |
| AWS_DEFAULT_REGION: us-east-1 | |
| run: | | |
| aws s3 sync s3://alsf-datalab-training-data/training-modules/ . --no-progress | |
| - name: Pull latest Docker image | |
| run: | | |
| docker pull ccdl/training_rstudio:edge | |
| - name: Render notebooks | |
| run: | | |
| docker run --rm \ | |
| --mount type=bind,source="$GITHUB_WORKSPACE",target=/training-modules \ | |
| -w /training-modules \ | |
| ccdl/training_rstudio:edge \ | |
| bash scripts/render-live.sh |