change DSSAT dep to forked version #67
This file contains hidden or 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: 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 }} |