Skip to content

Commit

Permalink
Merge pull request #4 from fhdsl/cansavvy-patch-2
Browse files Browse the repository at this point in the history
Add readability report
  • Loading branch information
cansavvy authored Jan 14, 2025
2 parents 2ce22e0 + e1f308b commit 0ca7849
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
toggle_url_check: "${{ env.URL_CHECKER }}"
toggle_render_preview: "${{ env.RENDER_PREVIEW }}"
rendering_docker_image: "${{ env.RENDERING_DOCKER_IMAGE }}"
toggle_readability: "${{ env.READABILITY_REPORT }}"

########################## Make the error reports ##############################
spell-check:
Expand All @@ -69,7 +70,28 @@ jobs:
error_min: 0
secrets:
gh_pat: ${{ secrets.GH_PAT }}

############################# Readability Report ###################################

readability-report:
name: Readability report
needs: yaml-check
runs-on: ubuntu-latest
if: ${{needs.yaml-check.outputs.toggle_readability == 'yes'}}

steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Readability report
uses: Rebilly/lexi@v2
with:
github-token: ${{ secrets.GH_PAT }}
glob: '**/*.md'
############################# Render preview ###################################

render-preview:
name: Render preview
needs: yaml-check
Expand Down
2 changes: 2 additions & 0 deletions config_automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ style-code: yes
# Test build the docker image if any docker-relevant files have been changed
# Should URLs be tested periodically?
url-check-periodically: yes
# Would you like a readability report on your markdowns?
readability-report: yes

# What docker image should be used for rendering?
# The default is jhudsl/base_ottr:main
Expand Down
8 changes: 8 additions & 0 deletions resources/exclude_files.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
About.Rmd
docs/*
style-sets/*
manuscript/*
CONTRIBUTING.md
LICENSE.md
code_of_conduct.md
README.md

0 comments on commit 0ca7849

Please sign in to comment.