Add new food-habits data pipeline in data-raw/food-habits (ingestion, estimators, exports) #260
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
| # Workflow derived from https://github.com/r-lib/actions/tree/v2/examples | |
| # Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help | |
| on: | |
| push: | |
| branches: [main, dev-jct, dev-andy, dev-remi, dev-emily, foodhabits_MMM] | |
| pull_request: | |
| branches: [main, dev-jct, dev-andy, dev-remi, dev-emily, foodhabits_MMM] | |
| name: R-CMD-check | |
| jobs: | |
| R-CMD-check: | |
| runs-on: windows-latest | |
| env: | |
| GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| RETICULATE_PYTHON: python | |
| R_KEEP_PKG_SOURCE: yes | |
| PKG_SYSREQS: false | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: r-lib/actions/setup-r@v2 | |
| with: | |
| use-public-rspm: true | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Configure Python for R | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install copernicusmarine | |
| shell: bash | |
| - uses: r-lib/actions/setup-r-dependencies@v2 | |
| with: | |
| extra-packages: | | |
| any::rcmdcheck | |
| any::testthat | |
| any::devtools | |
| any::reticulate | |
| needs: check | |
| - name: Install GitHub dependencies | |
| run: | | |
| remotes::install_github("pbs-assess/pacea") | |
| remotes::install_github("PopulationEcologyDivision/Mar.data") | |
| shell: Rscript {0} | |
| - name: Install package | |
| run: devtools::install() | |
| shell: Rscript {0} | |
| - name: Test coverage | |
| run: covr::codecov(quiet = FALSE) | |
| shell: Rscript {0} |