-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 1.08 KB
/
main.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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