-
Notifications
You must be signed in to change notification settings - Fork 878
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1287 from felixfontein/ci
- Loading branch information
Showing
3 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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,37 @@ | ||
name: "Docs" | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
# Only consider changes to documentation | ||
paths: | ||
- '**/*.md' | ||
- '**/*.rst' | ||
- '**/*.txt' | ||
schedule: | ||
- cron: '25 6 * * 3' | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
documentation: | ||
name: Lint RST and MD files | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 | ||
|
||
- name: Install rstcheck and markdownlint | ||
run: | | ||
pip install rstcheck | ||
sudo gem install mdl | ||
- name: Run rstcheck on all RST files | ||
run: make checkrst | ||
|
||
- name: Run mdl on all MD files | ||
run: make checkmd |
This file contains 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
This file contains 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