Skip to content

Commit be925a8

Browse files
joewallworkCopilotMarionBWeinzierllsetiawan
authored
JOSS submission (#70)
* Generate JOSS paper workflow * Copy over JOSS paper template materials * Add gitignore files * Fix LaTeX template * First draft * Use hash for checkout action in JOSS workflow * Add test for JOSS paper template * Update text on testing * Simplify JOSS render workflow --------- Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: Marion <56403724+MarionBWeinzierl@users.noreply.github.com> Co-authored-by: Don Setiawan <landungs@uw.edu>
1 parent a61d1e5 commit be925a8

12 files changed

Lines changed: 2750 additions & 48 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Answers to be passed to the JOSS paper workflow during testing
2+
_commit: 3ca4cf1
3+
_src_path: .
4+
build_docs_timeout: 15
5+
build_sys_file_paths:
6+
- '**/Makefile'
7+
carbon_aware: false
8+
deploy_docs: false
9+
docs_file_paths:
10+
- '**/*.md'
11+
joss_render_timeout: 5
12+
joss_upload_timeout: 5
13+
requirements_file_paths:
14+
- requirements-dev.txt
15+
source_file_paths:
16+
- '**/*.jinja'
17+
static_analysis_timeout: 5
18+
test_suite_timeout: 15

.github/patches/test_suite.patch

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@
2121
- fi
2222
- rm tmp.patch
2323
-
24+
- - name: Test JOSS paper template
25+
- run: |
26+
- copier copy --answers-file .github/answers/render_joss_paper.yml --force --quiet . .
27+
- if ! git diff .github/workflows/render_joss_paper.yml; then
28+
- exit 1
29+
- fi
30+
-
2431
- - name: Test test suite template
2532
- run: |
2633
- copier copy --answers-file .github/answers/test_suite.yml --force --quiet . .
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Workflow to render a submission to the Journal of Open Source Software (JOSS)
2+
name: Render JOSS paper
3+
4+
# Controls when the workflow will run
5+
on:
6+
# Triggers the workflow on pushes to the "main" branch, i.e., PR merges
7+
push:
8+
branches: [ "main" ]
9+
paths:
10+
- '.github/workflows/render_joss_paper.yml'
11+
- 'paper/*'
12+
13+
# Triggers the workflow on pushes to open pull requests to main with documentation changes
14+
pull_request:
15+
paths:
16+
- '.github/workflows/render_joss_paper.yml'
17+
- 'paper/*'
18+
19+
# Cancel jobs running if new commits are pushed
20+
concurrency:
21+
group: ${{ github.workflow }}-${{ github.ref }}
22+
cancel-in-progress: true
23+
24+
# No write permission by default
25+
permissions: {}
26+
27+
jobs:
28+
# Builds a draft of the JOSS paper
29+
build-draft:
30+
# The type of runner that the job will run on
31+
runs-on: ubuntu-latest
32+
# The timeout minutes for the job to complete
33+
timeout-minutes: 5
34+
# We trust the deploy action with write permissions
35+
permissions:
36+
id-token: write
37+
38+
steps:
39+
# Checkout your repository under $GITHUB_WORKSPACE so your job can access it
40+
- name: Checkout
41+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
42+
with:
43+
persist-credentials: false
44+
45+
# Build the paper using the openjournals action
46+
- name: Build draft PDF
47+
uses: openjournals/openjournals-draft-action@85a18372e48f551d8af9ddb7a747de685fbbb01c
48+
with:
49+
journal: joss
50+
paper-path: paper/paper.md
51+
52+
# Upload the paper build
53+
- name: Upload draft PDF
54+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
55+
with:
56+
name: paper
57+
path: paper/paper.pdf

.github/workflows/test_suite.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,13 @@ jobs:
6868
fi
6969
rm tmp.patch
7070
71+
- name: Test JOSS paper template
72+
run: |
73+
copier copy --answers-file .github/answers/render_joss_paper.yml --force --quiet . .
74+
if ! git diff .github/workflows/render_joss_paper.yml; then
75+
exit 1
76+
fi
77+
7178
- name: Test test suite template
7279
run: |
7380
copier copy --answers-file .github/answers/test_suite.yml --force --quiet . .

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.copier-answers.yml

paper/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
paper.pdf
2+
compile.sh

0 commit comments

Comments
 (0)