Skip to content

Commit e5e540f

Browse files
committed
add: ci test
1 parent cf63a68 commit e5e540f

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/python-test.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Python package
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
python-version: ["3.8", "3.9"]
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
- name: Set up Python ${{ matrix.python-version }}
16+
uses: actions/setup-python@v3
17+
with:
18+
python-version: ${{ matrix.python-version }}
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip3 install .
23+
pip3 install --upgrade foliantcontrib.test_framework
24+
- name: Test with unittest
25+
run: |
26+
python3 -m doctest docs/*.md &&\
27+
python3 -m unittest discover -v &&\
28+
mypy ./foliant/ --ignore-missing-imports &&\
29+
cd test_pext && python3 -m unittest test_preprocessor_ext.py

0 commit comments

Comments
 (0)