Skip to content

change DSSAT dep to forked version #67

change DSSAT dep to forked version

change DSSAT dep to forked version #67

Workflow file for this run

name: Continuous Testing of R Package
on:
push:
branches: [ "main", "feature/**" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up R 4.4
uses: r-lib/actions/setup-r@v2
with:
r-version: 4.4
- uses: actions/checkout@v4
- name: Install Systemrequirements
run: ./install_requirements.sh
- name: Download and Compile DSSAT
run: ./install_dssat.sh
- name: Install devtools
run: R -e 'install.packages("devtools")'
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
- name: Install csmTools Package
run: R -e 'devtools::install_local(".")'
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
- name: Run ETL Pipeline
run: Rscript inst/etl_pipeline_example.R
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
- name: Test Output
run: R -e 'source("tests/runner.R")'
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}