update output table schema, fix pk handling for bcgw sources, update … #6
This file contains 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: Validate data sources | |
on: | |
push: | |
branches: [ main] | |
paths: | |
- '.github/workflows/validate.yaml' | |
- 'sources.json' | |
- 'source.schema.json' | |
pull_request: | |
branches: [ main ] | |
paths: | |
- '.github/workflows/validate.yaml' | |
- 'sources.json' | |
- 'source.schema.json' | |
env: | |
AWS_ENDPOINT_URL: "https://nrs.objectstore.gov.bc.ca" | |
AWS_S3_ENDPOINT: "nrs.objectstore.gov.bc.ca" | |
AWS_VIRTUAL_HOSTING: "FALSE" | |
AWS_EC2_METADATA_DISABLED: "true" | |
CPL_VSISTDIN_BUFFER_LIMIT: -1 | |
OBJECTSTORE_BUCKET: ${{ secrets.OBJECTSTORE_BUCKET }} | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
jobs: | |
validate: | |
runs-on: ubuntu-latest | |
name: test | |
container: ghcr.io/bcgov/harvest-restrictions:main | |
environment: production | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Validate sources.json | |
run: | | |
python download.py download sources.json --dry_run -v |