name: tests on: push: pull_request: jobs: unit-tests: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Install system dependencies run: | sudo apt-get update sudo apt-get install -y libcurl4-openssl-dev libssl-dev libxml2-dev libpoppler-cpp-dev libmagick++-dev - uses: r-lib/actions/setup-r@v2 with: r-version: "4.5.2" use-public-rspm: true - uses: r-lib/actions/setup-r-dependencies@v2 with: packages: | any::shiny any::ellmer any::pdftools any::magick any::base64enc any::jsonlite any::testthat any::withr # The tests use a mock in place of the model, so no API key is needed - name: Run tests run: Rscript tests/testthat.R