Test Data Download #3
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 : Test Data Download | |
on : | |
# allow manual triggering | |
workflow_dispatch: | |
schedule: | |
# run Thursday 4:30 AM UTC | |
- cron: '30 4 * * 4' | |
env: | |
R_LIBS_USER: /usr/local/lib/R/site-library | |
LC_ALL: en_US.UTF-8 | |
NCPUS: 2 | |
PGHOST: postgres | |
CI: true | |
jobs: | |
met-data-download: | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
services: | |
postgres: | |
image: mdillon/postgis:9.5 | |
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | |
container: | |
image: pecan/depends:R4.1 | |
steps: | |
# checkout source code | |
- name: work around https://github.com/actions/checkout/issues/766 | |
run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
- uses: actions/checkout@v4 | |
with: | |
set-safe-directory: false | |
# install additional tools needed | |
- name: install utils | |
run: apt-get update && apt-get install -y postgresql-client qpdf | |
- name: install new dependencies | |
run: Rscript scripts/generate_dependencies.R && cd docker/depends && Rscript pecan.depends.R | |
# initialize database | |
- name: db setup | |
uses: docker://pecan/db:ci | |
- name: add models to db | |
run: ./scripts/add.models.sh | |
# compile PEcAn code | |
- name: build | |
run: make -j1 | |
- name: CRUNCEP | |
run: | | |
Rscript ./tests/test_met_downloads.R --settings ./tests/met_download_settings/docker.CRUNCEP.xml |