repo-to-text/.github/workflows/tests.yml
Kirill Markin 14d2b3b36e
Fix GitHub Actions tests
- Remove Python 3.8 from test matrix (incompatible with requires-python >=3.9)
- Add proper type annotations for pytest fixtures (capsys, caplog)
2025-05-25 11:05:22 +03:00

36 lines
No EOL
755 B
YAML

name: Run Tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.11", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install tree command
run: sudo apt-get install -y tree
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[dev]
- name: Run pylint
run: |
pylint repo_to_text
- name: Run tests
run: |
pytest tests/