Scheduled-tests #12
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
| # Scheduled testing to catch regressions | |
| on: | |
| schedule: | |
| # Run every Sunday at 2 AM UTC | |
| - cron: '0 2 * * 0' | |
| workflow_dispatch: # Allow manual triggering | |
| name: Scheduled-tests | |
| permissions: read-all | |
| jobs: | |
| scheduled-check: | |
| runs-on: ubuntu-latest | |
| env: | |
| GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: r-lib/actions/setup-r@v2 | |
| with: | |
| r-version: 'devel' | |
| use-public-rspm: true | |
| - uses: r-lib/actions/setup-r-dependencies@v2 | |
| with: | |
| extra-packages: any::rcmdcheck | |
| needs: check | |
| - name: Install system dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libgdal-dev libproj-dev libgeos-dev libudunits2-dev | |
| - name: Install LaTeX | |
| run: | | |
| sudo apt-get install -y texlive-latex-base texlive-fonts-recommended texlive-latex-extra | |
| - name: Full R CMD check with latest dependencies | |
| run: | | |
| R CMD build . --no-manual | |
| R CMD check *.tar.gz --as-cran | |
| shell: bash | |
| - name: Notify on failure | |
| if: failure() | |
| run: | | |
| echo "Scheduled check failed. This may indicate a regression or dependency issue." | |
| echo "Please check the full logs for details." | |
| - name: Upload results on failure | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: scheduled-check-failure | |
| path: | | |
| *.Rcheck/ | |
| check/ |