Repository navigation
JOSS submission #70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
JOSS submission #70
Changes from 52 commits
Commits
Show all changes
55 commits
Select commit
Hold shift + click to select a range
d66f27a
Add comment for consistency with templates
joewallwork 00e2bd1
Improve consistency of path triggers
joewallwork a6f0c49
Add test for applying static analysis template
joewallwork ae697d9
Need to install copier
joewallwork 1cad160
Use hash for actions checkout
joewallwork b2b8272
Use copier.yml as build system file
joewallwork 2cfd470
Check diff with static_analysis.yml specifically
joewallwork 1da01ef
Add check for test suite, too
joewallwork 0bcad88
Add answers files
joewallwork 36197c3
Ensure test suite workflow raises errors
joewallwork 643a0f8
More test fixes
joewallwork f4aacba
Add patch file and fix ordering
joewallwork a93d239
Only turn on errors for check
joewallwork bdbb7b1
Print diff on failure
joewallwork 720c1e4
Only raise error if exiting
joewallwork 5c4d2bc
Use correct syntax for set
joewallwork 3d66f61
Fix inverted test conditions in test suite workflow (#68)
Copilot 7767105
Spell out --answers-file
joewallwork f3e0d28
Add descriptions for answers files
joewallwork bb1eff1
Undo change to static analysis workflow
joewallwork f9550de
Drop redundant echos
joewallwork 6686661
Add index page
joewallwork cdb49c5
Add lit review page
joewallwork 3c4c13f
Add usage page
joewallwork 77f61f1
Add community page
joewallwork 6af9a39
Add best practices page
joewallwork 7e87cbb
Add about page
joewallwork a6fbcba
Add docs build system
joewallwork a7d8859
Rework build_docs workflow to have separate build and deploy jobs
joewallwork 5f492d2
Add workflow for building and deploying docs
joewallwork 5a7fc19
Add testing framework for build_docs workflow
joewallwork a03d8be
Docs are in subdir
joewallwork d82a5e7
Update patch file for test_suite
joewallwork 41b0b4a
Need to install Sphinx before building docs
joewallwork 5e9a3e1
Ignore @@ in patches
joewallwork 8f6964f
Cut down README and add contributing section
joewallwork a390889
Generate JOSS paper workflow
joewallwork 4258ecf
Copy over JOSS paper template materials
joewallwork 4cc0347
Add some references
joewallwork ce853c3
Add gitignore files
joewallwork ae7a224
Fix LaTeX template
joewallwork 6298190
First draft
joewallwork 6375a90
Use hash for checkout action in JOSS workflow
joewallwork b79933b
Add test for JOSS paper template
joewallwork 510bdc2
Update text on testing
joewallwork 2f689cb
green-ci isn't really Python
joewallwork 36bd17b
Update paper to mention docs
joewallwork fa253ad
Zizmor linting
joewallwork be3e6e0
Reorder tests and add patch
joewallwork 561ea8a
Simplify JOSS render workflow
joewallwork a84b0c1
Bump version number to fix zizmor linting
joewallwork 4c75882
Apply suggestions from @lsetiawan and @MarionBWeinzierl reviews
joewallwork b1ea226
Fix version tag for upload-artifcat
joewallwork ad426c1
Update version tag for upload-artifact
joewallwork 6887f1d
Merge branch 'main' into joss-paper
joewallwork File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| # Answers to be passed to the docs build workflow during testing | ||
| _commit: a6fbcba | ||
| _src_path: . | ||
| build_docs_timeout: 15 | ||
| build_sys_file_paths: | ||
| - 'copier.yml' | ||
| - 'docs/conf.py' | ||
| - 'docs/Makefile' | ||
| carbon_aware: false | ||
| deploy_docs: true | ||
| docs_file_paths: | ||
| - 'docs/*.rst' | ||
| joss_render_timeout: 5 | ||
| joss_upload_timeout: 5 | ||
| requirements_file_paths: | ||
| - requirements-dev.txt | ||
| source_file_paths: | ||
| - 'docs/*.rst' | ||
| static_analysis_timeout: 5 | ||
| test_suite_timeout: 15 |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| # Answers to be passed to the JOSS paper workflow during testing | ||
| _commit: 3ca4cf1 | ||
| _src_path: . | ||
| build_docs_timeout: 15 | ||
| build_sys_file_paths: | ||
| - '**/Makefile' | ||
| carbon_aware: false | ||
| deploy_docs: false | ||
| docs_file_paths: | ||
| - '**/*.md' | ||
| joss_render_timeout: 5 | ||
| joss_upload_timeout: 5 | ||
| requirements_file_paths: | ||
| - requirements-dev.txt | ||
| source_file_paths: | ||
| - '**/*.jinja' | ||
| static_analysis_timeout: 5 | ||
| test_suite_timeout: 15 |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| # Answers to be passed to the static analysis workflow during testing | ||
| _commit: 44528ab | ||
| _src_path: . | ||
| build_docs_timeout: 15 | ||
| build_sys_file_paths: | ||
| - '**/Makefile' | ||
| carbon_aware: false | ||
| deploy_docs: false | ||
| docs_file_paths: | ||
| - '**/*.md' | ||
| joss_render_timeout: 5 | ||
| joss_upload_timeout: 5 | ||
| requirements_file_paths: | ||
| - requirements-dev.txt | ||
| source_file_paths: | ||
| - '**/*.jinja' | ||
| static_analysis_timeout: 5 | ||
| test_suite_timeout: 15 |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| # Answers to be passed to the test suite workflow during testing | ||
| _commit: 44528ab | ||
| _src_path: . | ||
| build_docs_timeout: 15 | ||
| build_sys_file_paths: | ||
| - 'copier.yml' | ||
| carbon_aware: false | ||
| deploy_docs: false | ||
| docs_file_paths: | ||
| - '**/*.md' | ||
| joss_render_timeout: 5 | ||
| joss_upload_timeout: 5 | ||
| requirements_file_paths: | ||
| - requirements-dev.txt | ||
| source_file_paths: | ||
| - '**/*.jinja' | ||
| static_analysis_timeout: 5 | ||
| test_suite_timeout: 15 |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| # The timeout minutes for the job to complete | ||
| timeout-minutes: 15 | ||
| env: | ||
| - BUILD_DIR: docs/build/html | ||
| + BUILD_DIR: "TODO replace this string with the path to the build directory" | ||
|
|
||
| # Steps represent a sequence of tasks that will be executed as part of the job | ||
| steps: | ||
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | ||
|
|
||
| - name: Build documentation | ||
| - run: | | ||
| - pip install -r requirements-dev.txt | ||
| - cd docs | ||
| - make html | ||
| + run: echo "TODO replace this echo call with your docs build commands" | ||
|
|
||
| - name: Upload Artifact | ||
| uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4 | ||
| steps: | ||
| - name: Deploy to GitHub Pages | ||
| id: deployment | ||
| - uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e #v4 | ||
| + uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e #v4 | ||
| \ No newline at end of file |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| with: | ||
| persist-credentials: false | ||
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | ||
| - | ||
| - - name: Jinja linting with djlint | ||
| - run: | | ||
| - pip install -r requirements-dev.txt | ||
| - djlint template/.github/workflows/*.yml.jinja | ||
| + - name: Run static analysis tools | ||
| + run: echo "TODO replace this echo call with your static analysis tool commands" | ||
|
|
||
| # Apply GitHub Actions linter, zizmor | ||
| zizmor: |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| with: | ||
| persist-credentials: false | ||
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | ||
| - | ||
| - - name: Test static analysis template | ||
| - run: | | ||
| - pip install -r requirements.txt | ||
| - copier copy --answers-file .github/answers/static_analysis.yml --force --quiet . . | ||
| - git diff .github/workflows/static_analysis.yml | tail -n +6 > tmp.patch | ||
| - if ! diff tmp.patch .github/patches/static_analysis.patch; then | ||
| - exit 1 | ||
| - fi | ||
| - rm tmp.patch | ||
| - | ||
| - - name: Test docs build template | ||
| - run: | | ||
| - copier copy --answers-file .github/answers/build_docs.yml --force --quiet . . | ||
| - git diff .github/workflows/build_docs.yml | tail -n +6 | grep -v '@@' > tmp.patch | ||
| - if ! diff tmp.patch .github/patches/build_docs.patch; then | ||
| - exit 1 | ||
| - fi | ||
| - rm tmp.patch | ||
| - | ||
| - - name: Test JOSS paper template | ||
| - run: | | ||
| - copier copy --answers-file .github/answers/render_joss_paper.yml --force --quiet . . | ||
| - if ! git diff .github/workflows/render_joss_paper.yml; then | ||
| - exit 1 | ||
| - fi | ||
| - | ||
| - - name: Test test suite template | ||
| - run: | | ||
| - copier copy --answers-file .github/answers/test_suite.yml --force --quiet . . | ||
| - git diff .github/workflows/test_suite.yml | tail -n +6 > tmp.patch | ||
| - if ! diff tmp.patch .github/patches/test_suite.patch; then | ||
| - exit 1 | ||
| - fi | ||
| - rm tmp.patch | ||
| + - name: Test suite | ||
| + run: echo "TODO replace this echo call with your test suite commands" | ||
| \ No newline at end of file |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,87 @@ | ||
| # Workflow to build and deploy docs for the project | ||
| name: Build docs | ||
|
|
||
| # Controls when the workflow will run | ||
| on: | ||
| # Triggers the workflow on pushes to the "main" branch, i.e., PR merges | ||
| push: | ||
| branches: [ "main" ] | ||
| paths: | ||
| - '.github/workflows/build_docs.yml' | ||
| - 'docs/*.rst' | ||
|
|
||
| # Triggers the workflow on pushes to open pull requests to main with documentation changes | ||
| pull_request: | ||
| paths: | ||
| - '.github/workflows/build_docs.yml' | ||
| - 'docs/*.rst' | ||
|
|
||
| # Allows you to run this workflow manually from the Actions tab | ||
| workflow_dispatch: | ||
|
|
||
| # Helps prevent parallel runs of the workflow from overlapping | ||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| # Write permissions are not needed for all jobs in this workflow | ||
| permissions: {} | ||
|
|
||
| # Workflow run - one or more jobs that can run sequentially or in parallel | ||
| jobs: | ||
| # Build the project documentation but do not deploy it | ||
| build: | ||
| name: test docs build | ||
| # The type of runner that the job will run on | ||
| runs-on: ubuntu-latest | ||
| # The timeout minutes for the job to complete | ||
| timeout-minutes: 15 | ||
| env: | ||
| BUILD_DIR: docs/build/html | ||
|
|
||
| # Steps represent a sequence of tasks that will be executed as part of the job | ||
| steps: | ||
| # Checkout your repository under $GITHUB_WORKSPACE so your job can access it | ||
| - name: Checkout code | ||
| with: | ||
| persist-credentials: false | ||
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | ||
|
|
||
| - name: Build documentation | ||
| run: | | ||
| pip install -r requirements-dev.txt | ||
| cd docs | ||
| make html | ||
|
|
||
| - name: Upload Artifact | ||
| uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4 | ||
| with: | ||
| path: ${{ env.BUILD_DIR }} | ||
|
|
||
| # Build the project documentation and deploy it | ||
| deploy: | ||
| name: deploy to GitHub pages | ||
| # The type of runner that the job will run on | ||
| runs-on: ubuntu-latest | ||
| # The timeout minutes for the job to complete | ||
| timeout-minutes: 15 | ||
| # This job depends on the one above | ||
| needs: build | ||
| # Only deploy the docs upon merging into main | ||
| if: ${{ github.ref == 'refs/heads/main' }} | ||
|
|
||
| # We trust the deploy action with write permissions | ||
| permissions: | ||
| pages: write # The deploy action is trusted to write to GitHub Pages | ||
| id-token: write # The deploy action is trusted to write to GitHub Pages | ||
|
|
||
| # Setup the environment for publishing the docs | ||
| environment: | ||
| name: github-pages | ||
| url: ${{ steps.deployment.outputs.page_url }} | ||
|
|
||
| # Steps represent a sequence of tasks that will be executed as part of the job | ||
| steps: | ||
| - name: Deploy to GitHub Pages | ||
| id: deployment | ||
| uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e #v4 |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| # Workflow to render a submission to the Journal of Open Source Software (JOSS) | ||
| name: Render JOSS paper | ||
|
|
||
| # Controls when the workflow will run | ||
| on: | ||
| # Triggers the workflow on pushes to the "main" branch, i.e., PR merges | ||
| push: | ||
| branches: [ "main" ] | ||
| paths: | ||
| - '.github/workflows/render_joss_paper.yml' | ||
| - 'paper/*' | ||
|
|
||
| # Triggers the workflow on pushes to open pull requests to main with documentation changes | ||
| pull_request: | ||
| paths: | ||
| - '.github/workflows/render_joss_paper.yml' | ||
| - 'paper/*' | ||
|
|
||
| # Cancel jobs running if new commits are pushed | ||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| # No write permission by default | ||
| permissions: {} | ||
|
|
||
| jobs: | ||
| # Builds a draft of the JOSS paper | ||
| build-draft: | ||
| # The type of runner that the job will run on | ||
| runs-on: ubuntu-latest | ||
| # The timeout minutes for the job to complete | ||
| timeout-minutes: 5 | ||
| # We trust the deploy action with write permissions | ||
| permissions: | ||
| id-token: write | ||
|
|
||
| steps: | ||
| # Checkout your repository under $GITHUB_WORKSPACE so your job can access it | ||
| - name: Checkout | ||
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | ||
| with: | ||
| persist-credentials: false | ||
|
|
||
| # Build the paper using the openjournals action | ||
| - name: Build draft PDF | ||
| uses: openjournals/openjournals-draft-action@85a18372e48f551d8af9ddb7a747de685fbbb01c | ||
| with: | ||
| journal: joss | ||
| paper-path: paper/paper.md | ||
|
|
||
| # Upload the paper build | ||
| - name: Upload draft PDF | ||
| uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 | ||
| with: | ||
| name: paper | ||
| path: paper/paper.pdf | ||
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.