Skip to content

Updated many links to ensure the links work on the new DEA Knowledge Hub site #790

Updated many links to ensure the links work on the new DEA Knowledge Hub site

Updated many links to ensure the links work on the new DEA Knowledge Hub site #790

name: Test notebooks
on:
push:
branches: [ develop, stable, nbtests ]
paths-ignore:
- '**/*.md' # ignore markdown files
- '**/*.rst' # ignore restructured text files
- '.github/**' # ignore anything in .github folder
- '!.github/workflows/test_notebooks.yml' # except test_notebooks.yml
pull_request:
branches: [ develop, stable ]
paths-ignore:
- '**/*.md'
- '**/*.rst'
- '.github/**'
- '!.github/workflows/test_notebooks.yml'
permissions:
id-token: write # This is required for requesting the JSON web token
contents: read # This is required for actions/checkout
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
path: dea-notebooks
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: arn:aws:iam::538673716275:role/github-actions-role-readonly
aws-region: ap-southeast-2
- name: Copy tide modelling files with the AWS CLI
run: aws s3 sync s3://dea-non-public-data/tide_models/tide_models tide_models
- name: Login to Amazon ECR Private
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1
- name: Set up Datacube and test
run: |
sudo chown -R 1000:100 ./dea-notebooks
cd ./dea-notebooks
CURRENT_UID=1000:100 docker-compose up -d
docker-compose exec -T sandbox ./dea-notebooks/Tests/setup_test_datacube.sh
docker-compose exec -T sandbox ./dea-notebooks/Tests/test_notebooks.sh