Skip to content

Fix: Update submodule and enable analyzer test #40

Fix: Update submodule and enable analyzer test

Fix: Update submodule and enable analyzer test #40

Workflow file for this run

name: Build
on: [push, pull_request]
permissions:
contents: read
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, macos-14]
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
version: "latest"
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install system dependencies (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y pkg-config libglib2.0-dev libzstd-dev
- name: Install system dependencies (macOS)
if: matrix.os == 'macos-latest' || matrix.os == 'macos-14'
run: |
brew install glib pkg-config zstd argp-standalone
- name: Build and test with uv
run: |
uv venv --python ${{ matrix.python-version }}
uv pip install -e .[dev]
uv run python -c "import libcachesim; print('✓ Import successful for Python ${{ matrix.python-version }} on ${{ matrix.os }}')"
- name: Run tests
run: |
if [ -d "tests" ]; then
uv run python -m pytest tests/ -v
else
echo "No tests directory found, skipping tests"
fi
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
version: "latest"
- name: Set up Python
run: uv python install 3.11
- name: Install documentation dependencies and build
run: |
# Install MkDocs and dependencies using pip in a temporary venv
python3 -m venv temp-docs-env
source temp-docs-env/bin/activate
pip install -r docs/requirements.txt
cd docs
mkdocs build --clean --strict