Skip to content
11 changes: 11 additions & 0 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,20 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install textparser development and testing dependencies
run: |
pip install --upgrade pip
pip install .
pip install .[test]
- name: Test
run: |
python -m unittest
- name: Static type checking (mypy)
run: |
python -m mypy --strict textparser.py tests
- name: Linting (ruff)
run: |
ruff check textparser.py tests

release:
needs: [test]
Expand Down
Empty file added py.typed
Comment thread
andlaus marked this conversation as resolved.
Outdated
Empty file.
6 changes: 6 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,10 @@ def find_version():
url='https://github.com/eerimoq/textparser',
py_modules=['textparser'],
python_requires='>=3.10',
extras_require={
"test": [
"mypy >= 2.1",
"ruff >= 0.15.12",
],
},
test_suite="tests")
Loading
Loading