Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
smnorris committed Aug 6, 2024
1 parent d20f78d commit 1a306b8
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 15 deletions.
32 changes: 21 additions & 11 deletions .github/workflows/harvest-restrictions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,29 @@ env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
jobs:
download:
harvest-restrictions:
runs-on: ubuntu-latest
name: test
container: ghcr.io/bcgov/harvest-restrictions:main
environment: production
services:
postgres:
image: postgis/postgis:16-3.4
env:
POSTGRES_PASSWORD: postgres
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
DEBIAN_FRONTEND: noninteractive
steps:
- uses: actions/checkout@v4
- name: Download sources to file
run: /venv/bin/python download.py sources.json -v
process:
runs-on: ubuntu-latest
container: ghcr.io/bcgov/harvest-restrictions:main
environment: production
steps:
- uses: actions/checkout@v4
- name: Process overlays and dump results to file
run: process.sh
- name: Download
run: |
/venv/bin/python download.py sources.json -v
- name: Process overlays
run: |
./process.sh
7 changes: 3 additions & 4 deletions .github/workflows/test-and-validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
push:
branches: [ main]
paths:
- '.github/workflows/test.yaml'
- '.github/workflows/test-and-validate.yaml'
- 'requirements*.txt'
- 'download.py'
- 'test_download.py'
Expand All @@ -12,7 +12,7 @@ on:
pull_request:
branches: [ main ]
paths:
- '.github/workflows/test.yaml'
- '.github/workflows/test-and-validate.yaml'
- 'requirements*.txt'
- 'download.py'
- 'test_download.py'
Expand All @@ -33,6 +33,7 @@ jobs:
runs-on: ubuntu-latest
name: test
container: ghcr.io/bcgov/harvest-restrictions:main
environment: production
services:
postgres:
image: postgis/postgis:16-3.4
Expand All @@ -46,8 +47,6 @@ jobs:
--health-retries 5
env:
DEBIAN_FRONTEND: noninteractive
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Install test dependencies
Expand Down

0 comments on commit 1a306b8

Please sign in to comment.