Fixed issues for CRAN submission. (#12) #14
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: Run tests and upload coverage report to Codecov | |
| on: | |
| push: | |
| branches: [dev, main] | |
| jobs: | |
| coverage: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up R | |
| uses: r-lib/actions/setup-r@v2 | |
| with: | |
| use-public-rspm: true | |
| - name: Install R dependencies | |
| run: | | |
| Rscript -e "install.packages(c('covr', 'devtools', 'remotes'))" | |
| Rscript -e "devtools::install_deps(dependencies = TRUE)" | |
| - name: Run tests and upload coverage to Codecov | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| run: | | |
| Rscript -e "covr::codecov(token = Sys.getenv('CODECOV_TOKEN'))" |