Skip to content

Commit

Permalink
Add GHA test for this action
Browse files Browse the repository at this point in the history
  • Loading branch information
rffontenelle committed Mar 26, 2024
1 parent 2917a0b commit 06c9994
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/file.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Some errors
===========

Those triple backticks are not a thing in rst:
```here```.

Here ``Callable``s the "s" should be separated from ``Callable`` using

Check failure on line 7 in .github/file.rst

View workflow job for this annotation

GitHub Actions / test

inline literal missing (escaped) space after literal: '``Callable``s' (missing-space-after-literal)

Check failure on line 7 in .github/file.rst

View workflow job for this annotation

GitHub Actions / test

found an unbalanced inline literal markup. (unbalanced-inline-literals-delimiters)

Check failure on line 7 in .github/file.rst

View workflow job for this annotation

GitHub Actions / test

found an unbalanced inline literal markup. (unbalanced-inline-literals-delimiters)
a "backslash-space".

... versionchanged:: 3.11

Check failure on line 10 in .github/file.rst

View workflow job for this annotation

GitHub Actions / test

directive should start with two dots, not three. (directive-with-three-dots)
Raises :exc:`TypeError` instead of :exc:`AttributeError` if *cm*
is not a context manager.
19 changes: 19 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Test

on:
push:
branches:
main
pull_request:
branches:
main

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./
- run: pip install sphinx-lint>=0.9.0
- run: sphinx-lint .github/file.rst >/dev/null
continue-on-error: true

0 comments on commit 06c9994

Please sign in to comment.