Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]

# The workflow only reads the checkout; it publishes nothing.
permissions:
contents: read

# A new push to the same branch makes the previous run irrelevant.
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
name: tests (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
# pyproject.toml claims requires-python = ">=3.11". Run the whole declared
# range so the claim is checked rather than assumed.
matrix:
python-version: ["3.11", "3.12", "3.13", "3.14"]
steps:
# Pinned to exact versions: astral-sh/setup-uv publishes no bare major
# alias past v7, and mixing pin styles in one file invites drift.
- uses: actions/checkout@v7.0.1

- uses: astral-sh/setup-uv@v10.0.1
with:
enable-cache: true

- name: uv.lock is in sync with pyproject.toml
run: uv lock --check

- name: Run tests
run: uv run --python ${{ matrix.python-version }} python -m unittest discover -s tests -t . -v

- name: Entry points report the declared version
run: |
uv run --python ${{ matrix.python-version }} python pairtex.py --version
uv run --python ${{ matrix.python-version }} python pairtex_render.py --version
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

# PairTeX

[![CI](https://github.com/yuema137/PairTeX/actions/workflows/ci.yml/badge.svg)](https://github.com/yuema137/PairTeX/actions/workflows/ci.yml)

## Lightweight human-agent writing for any local LaTeX project

**Plug in locally. Keep your source. Use any coding agent.**
Expand Down
2 changes: 2 additions & 0 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

# PairTeX

[![CI](https://github.com/yuema137/PairTeX/actions/workflows/ci.yml/badge.svg)](https://github.com/yuema137/PairTeX/actions/workflows/ci.yml)

## 给任何本地 LaTeX 项目加一层轻量的人机协作写作

**本地插上就能用。源码还是你自己的。agent 你自己挑。**
Expand Down
Loading