Fix truth vector generation in forecastbaselines vignette #17
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/master/examples | |
| # Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help | |
| on: | |
| push: | |
| branches: [main, master] | |
| pull_request: | |
| branches: [main, master] | |
| merge_group: | |
| workflow_dispatch: | |
| name: test-coverage | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test-coverage: | |
| runs-on: macos-latest | |
| if: "! contains(github.event.head_commit.message, '[ci skip]')" | |
| env: | |
| GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
| NOT_CRAN: true | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: julia-actions/setup-julia@v2 | |
| with: | |
| version: '1.11' | |
| - name: Cache Julia packages | |
| uses: julia-actions/cache@v2 | |
| with: | |
| cache-name: julia-cache-artifacts | |
| cache-compiled: true | |
| - uses: r-lib/actions/setup-pandoc@v2 | |
| - uses: r-lib/actions/setup-r@v2 | |
| with: | |
| use-public-rspm: true | |
| - uses: r-lib/actions/setup-r-dependencies@v2 | |
| with: | |
| extra-packages: any::covr, local::. | |
| needs: coverage | |
| - uses: conda-incubator/setup-miniconda@v3 | |
| with: | |
| miniconda-version: "latest" | |
| activate-environment: "" | |
| - name: Link conda for Julia | |
| run: | | |
| mkdir -p "$HOME/.julia/conda/3" | |
| ln -sf "$CONDA" "$HOME/.julia/conda/3/$(uname -m)" | |
| shell: bash | |
| - name: Install JuliaCall dependencies | |
| run: | | |
| export R_HOME=$(R RHOME) | |
| julia -e 'ENV["R_HOME"] = raw"'"$R_HOME"'"; using Pkg; Pkg.add("Suppressor"); Pkg.add("RCall"); Pkg.build("RCall")' | |
| shell: bash | |
| - name: Setup Julia dependencies | |
| run: | | |
| forecastbaselines::setup_ForecastBaselines(verbose = TRUE) | |
| shell: Rscript {0} | |
| - name: Test coverage | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| run: covr::codecov(quiet = FALSE) | |
| shell: Rscript {0} |