Update client-R-git-package.yml #296
Workflow file for this run
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: client-R-git-package | |
on: | |
push: | |
pull_request: | |
branches: | |
- 'main' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
container: ubuntu:latest | |
services: | |
model: | |
image: linusseelinger/benchmark-analytic-banana:latest | |
ports: | |
- 4243:4243 | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v2 | |
- | |
name: APT Dependencies | |
run: | | |
apt-get update --fix-missing && DEBIAN_FRONTEND="noninteractive" apt-get install -y r-base libcurl4-gnutls-dev libxml2-dev libfontconfig1-dev libfreetype6 libharfbuzz-dev libfribidi-dev libtiff-dev libssl-dev | |
- | |
name: R Dependencies | |
run: | | |
R -e 'install.packages("devtools")' | |
- | |
name: Build and install R package | |
run: | | |
cd R && R -e 'devtools::install()' | |
- | |
name: Test R package | |
run: | | |
cd R && R -e 'devtools::test()' | |
- | |
name: Run client | |
run: | | |
cd clients/R && Rscript client.R http://model:4243 |