Update key parameters after v3.2 calibration #455
Workflow file for this run
This file contains 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: leeyabot | |
on: | |
pull_request: | |
branches: | |
- '**' # matches every branch | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: iterative/setup-cml@v1 | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
r-version: 'release' | |
- name: Install libcurl | |
run: sudo apt-get install libcurl4-openssl-dev | |
- name: Install dependencies | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
install.packages(c("ggplot2", "rmarkdown", "dplyr", "remotes", "here")) | |
remotes::install_deps(dependencies = TRUE) | |
shell: Rscript {0} | |
- name: Install package | |
run: R CMD INSTALL . | |
- name: Generate report | |
run: | | |
rmarkdown::render("./scripts/OutputDifferences.Rmd", run_pandoc = FALSE) | |
shell: Rscript {0} | |
- name: Post comment | |
env: | |
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
# Post reports as comments in GitHub PRs | |
cd scripts/ | |
if [ -f "diff_plot.png" ] | |
then | |
cat OutputDifferences.knit.md >> report.md | |
echo "![](./diff_plot.png)" >> report.md | |
echo "![](./comp_plot.png)" >> report.md | |
elif [ -f "same_plot.png" ] | |
then | |
cat OutputDifferences.knit.md >> report.md | |
else | |
cat OutputDifferences.knit.md >> report.md | |
echo "leeyabot down :(" > report.md | |
fi | |
cml comment create report.md |