Skip to content

Bump pygments from 2.19.2 to 2.20.0 #209

Bump pygments from 2.19.2 to 2.20.0

Bump pygments from 2.19.2 to 2.20.0 #209

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Unit Testing
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
name: Unittest Anonlink ${{ matrix.python }} ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python: ["3.10", "3.11", "3.12", "3.13", "3.14"]
include:
# Native ARM Linux runner
- os: ubuntu-24.04-arm
python: "3.13"
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v4
with:
enable-cache: true
- name: Install dependencies and build
run: uv sync --python ${{ matrix.python }} --extra test
- name: Verify native extensions loaded
run: |
uv run python -c "
from anonlink.similarities import dice_coefficient
from anonlink.solving import greedy_solve
print(f'Similarity: {dice_coefficient.__module__}.{dice_coefficient.__name__}')
print(f'Solver: {greedy_solve.__module__}.{greedy_solve.__name__}')
assert 'accelerated' in dice_coefficient.__name__, 'Native dice extension not loaded'
assert 'native' in greedy_solve.__name__, 'Native solver extension not loaded'
"
- name: Test with pytest
run: uv run pytest -q
- name: Test with extended size 100k
if: matrix.python == '3.13' && matrix.os == 'ubuntu-latest'
env:
INCLUDE_100K: 1
run: uv run pytest -q
typecheck:
name: Typecheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v4
with:
enable-cache: true
- name: Install dependencies
run: uv sync --python 3.13
- name: Run mypy
run: uv run mypy anonlink --ignore-missing-imports