From ece2a6c29f05411e6979f708cb5f66312a06afeb Mon Sep 17 00:00:00 2001 From: Alexa Amundson <118287761+blackboxprogramming@users.noreply.github.com> Date: Mon, 23 Feb 2026 01:14:04 -0600 Subject: [PATCH] ci: add Python 3.10-3.12 CI workflow --- .github/workflows/ci.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..6872fbd --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,27 @@ +name: CI + +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 + - uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - run: pip install pytest pytest-cov + - name: Run tests + run: pytest tests/ -v --tb=short --cov=src --cov-report=term-missing + - name: Smoke-test CLI + run: | + python src/typography_analyzer.py readability "The quick brown fox jumps." --size 16 --lh 1.5 + python src/typography_analyzer.py scale --base 1.0 --ratio 1.25 --css + python src/typography_analyzer.py contrast '#1e293b' '#f8fafc'