Skip to content

fix(ci): resolve ruff lint errors and add libre2-dev for google-re2 b… #4

fix(ci): resolve ruff lint errors and add libre2-dev for google-re2 b…

fix(ci): resolve ruff lint errors and add libre2-dev for google-re2 b… #4

Workflow file for this run

name: Test Suite
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libre2-dev
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff pytest pybind11 setuptools wheel
CFLAGS="-I$(python -c 'import pybind11; print(pybind11.get_include())')" pip install google-re2==1.0.0 --no-build-isolation
pip install .[embed,demo]
- name: Lint with Ruff
run: |
ruff check .
- name: Test with pytest
run: |
pytest -v tests/