Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
smnorris committed Aug 27, 2024
1 parent c6bb75b commit 420395d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/download.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,18 @@ env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
jobs:
harvest-restrictions:
download:
runs-on: ubuntu-latest
name: harvest-restrictions
name: download
container: ghcr.io/bcgov/fit_changedetector:main
environment: production
env:
DEBIAN_FRONTEND: noninteractive
steps:
- uses: actions/checkout@v4
- name: Download sources to S3
- name: Install tool
run: |
python download.py download sources.json -v --out_path s3://$BUCKET/Change_Detector/
python -m pip install .
- name: Download park sources to S3
run: |
changedetector download config/parks.json -v --out_path s3://$BUCKET/Change_Detection/
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
test:
runs-on: ubuntu-latest
name: test
container: ghcr.io/bcgov/harvest-restrictions:main
container: ghcr.io/bcgov/fit_changedetector:main
environment: production
env:
DEBIAN_FRONTEND: noninteractive
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,15 @@ jobs:
validate:
runs-on: ubuntu-latest
name: test
container: ghcr.io/bcgov/harvest-restrictions:main
container: ghcr.io/bcgov/fit_changedetector:main
environment: production
env:
DEBIAN_FRONTEND: noninteractive
steps:
- uses: actions/checkout@v4
- name: Validate sources.json
- name: Install tool
run: |
python download.py sources.json --dry_run -v
python -m pip install .
- name: Validate park sources .json
run: |
changedetector download config/parks.json --dry_run -v

0 comments on commit 420395d

Please sign in to comment.