Skip to content

Commit 89fa480

Browse files
committed
Add sanity check
1 parent f77d5ed commit 89fa480

File tree

13 files changed

+34
-967
lines changed

13 files changed

+34
-967
lines changed

.github/workflows/sanity_check.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Sanity check
2+
3+
on:
4+
workflow_dispatch: {}
5+
6+
jobs:
7+
sanity:
8+
name: Sanity check
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- name: Set up Python for Poetry
13+
uses: actions/setup-python@v4
14+
with:
15+
python-version: "3.11"
16+
- name: Install poetry
17+
run: |
18+
python -m pip install poetry pip
19+
- name: Set up Python
20+
id: python
21+
uses: actions/setup-python@v4
22+
with:
23+
python-version: "3.11"
24+
cache: "poetry"
25+
- name: Install dependencies
26+
run: |
27+
poetry install -n
28+
- name: Python 3 check
29+
run: |
30+
PYTHON_VER=3 poetry run handsdown -i examples -o docs_examples -d --panic --exclude 'py2.py'
31+
- name: Python 2 check
32+
run: |
33+
PYTHON_VER=2 poetry run handsdown -i examples -o docs_examples --exclude -d '*/py2.py' --panic

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,3 +106,4 @@ venv.bak/
106106
.vscode
107107

108108
docs_local
109+
docs_examples

docs_examples/README.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

docs_examples/comment_typed.md

Lines changed: 0 additions & 111 deletions
This file was deleted.

docs_examples/expressions.md

Lines changed: 0 additions & 41 deletions
This file was deleted.

docs_examples/google_docstrings.md

Lines changed: 0 additions & 146 deletions
This file was deleted.

0 commit comments

Comments
 (0)