Skip to content

Merge pull request #3 from onnela-lab/rev #17

Merge pull request #3 from onnela-lab/rev

Merge pull request #3 from onnela-lab/rev #17

Workflow file for this run

name: Reproduction Materials
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch:
jobs:
build:
name: Build
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v3"
- name: Build Docker image.
run: docker build -t gptools .
- name: Verify notebooks are up to date.
run: docker run --rm -v `pwd`:/workdir gptools pytest -v
- name: Render the getting started notebook for Python.
run: docker run --rm -v `pwd`:/workdir gptools cook exec getting_started:run
- name: Render the getting started Rmarkdown for R.
run: docker run --rm -v `pwd`:/workdir gptools cook exec getting_started_R:run
- name: Generate figures (using ./in-docker.sh but we can't use `-it` in the Action).
run: docker run --rm -e FAST=true -v `pwd`:/workdir gptools cook exec figures
- name: Upload figures and reports as artifacts.
uses: actions/upload-artifact@v3
with:
name: figures-reports
path: |
*/*.html
*/*.pdf
*/*.png