diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2d0c637a..ad36db4a 100755 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,10 @@ name: Tests -on: [push, pull_request] +on: + push: + branches: [ master ] + pull_request: jobs: test-macos: @@ -52,3 +55,44 @@ jobs: cd tests make main.o ./main.o + + test-epiworld-r: + runs-on: ubuntu-latest + container: rocker/r2u:latest + + steps: + - uses: actions/checkout@v4 + + - uses: actions/checkout@v4 + with: + repository: UofUEpiBio/epiworldR + path: ./r-pkg + + - name: Getting epiworldR + run: | + install2.r knitr rmarkdown tinytest netplot igraph data.table + apt-get update && apt-get install -y --no-install-recommends pandoc + cp -r include/epiworld/ r-pkg/inst/include/epiworld/ + R CMD build r-pkg + R CMD check --no-manual epiworldR_*.tar.gz + + test-epiworld-r-valgrind: + runs-on: ubuntu-latest + container: rocker/r2u:latest + + steps: + - uses: actions/checkout@v4 + + - uses: actions/checkout@v4 + with: + repository: UofUEpiBio/epiworldR + path: ./r-pkg + + - name: Getting epiworldR + run: | + install2.r knitr rmarkdown tinytest netplot igraph data.table + apt-get update && apt-get install -y --no-install-recommends \ + pandoc valgrind + cp -r include/epiworld/ r-pkg/inst/include/epiworld/ + R CMD build r-pkg + R CMD check --no-manual --use-valgrind epiworldR_*.tar.gz