Skip to content

don't append HIGHLIGHT_PATTERNS automatically #381

don't append HIGHLIGHT_PATTERNS automatically

don't append HIGHLIGHT_PATTERNS automatically #381

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: pytest
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
env:
PYTHONIOENCODING: "utf-8"
PYTHONUTF8: 1
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.11", "3.12", "3.13", "3.14"]
poetry-version: ["1.8.5"]
steps:
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Set up poetry ${{ matrix.poetry-version }}
uses: abatilo/actions-poetry@v3
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Install dependencies and PDF tools
run: |
poetry install --all-extras
poetry run python scripts/install_didier_stevens_pdf_tools.py
- name: Test with pytest
run: |
poetry run pytest -vv --slow
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
poetry run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
poetry run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=120 --statistics