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 : Integration Tests | |
on : | |
# allow manual triggering | |
workflow_dispatch: | |
# for debugging | |
push: | |
pull_request: | |
schedule: | |
# run Thursday 4:30 AM UTC | |
- cron: '30 4 * * 4' | |
env: | |
R_LIBS_USER: /usr/local/lib/R/site-library | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
container: | |
image: pecan/depends:R4.1 | |
steps: | |
- name: work around https://github.com/actions/checkout/issues/766 | |
run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
- uses: actions/checkout@v3 | |
with: | |
set-safe-directory: false | |
- name: update dependency lists | |
run: Rscript scripts/generate_dependencies.R | |
- name: install newly-added dependencies | |
run: Rscript docker/depends/pecan.depends.R | |
- name: Install Packages | |
run: make | |
- name: Run tests | |
run: | | |
for FILE in modules/data.atmosphere/inst/integrationTests/*; do | |
Rscript $FILE; | |
done |