Pyzotero: a Python client for the Zotero API pyzotero.readthedocs.io
zotero

Add spindle CI workflow for testing

authored by urschrei.eurosky.social and committed by

Tangled 59364f5b 7c93e476

+56
+56
.tangled/workflows/ci.yml
··· 1 + # Spindle CI workflow for pyzotero testing 2 + # Runs on push and pull request events 3 + 4 + when: 5 + - event: ["push", "pull_request"] 6 + 7 + engine: nixery 8 + 9 + dependencies: 10 + nixpkgs: 11 + - uv 12 + - ruff 13 + 14 + steps: 15 + # Linting 16 + - name: "Run Ruff linter" 17 + command: "ruff check --verbose" 18 + 19 + # Test with Python 3.9 20 + - name: "Test with Python 3.9" 21 + command: | 22 + uv python install 3.9 23 + uv sync --python 3.9 --all-extras --dev 24 + uv run --python 3.9 pytest 25 + 26 + # Test with Python 3.10 27 + - name: "Test with Python 3.10" 28 + command: | 29 + uv python install 3.10 30 + uv sync --python 3.10 --all-extras --dev 31 + uv run --python 3.10 pytest 32 + 33 + # Test with Python 3.11 34 + - name: "Test with Python 3.11" 35 + command: | 36 + uv python install 3.11 37 + uv sync --python 3.11 --all-extras --dev 38 + uv run --python 3.11 pytest 39 + 40 + # Test with Python 3.12 41 + - name: "Test with Python 3.12" 42 + command: | 43 + uv python install 3.12 44 + uv sync --python 3.12 --all-extras --dev 45 + uv run --python 3.12 pytest 46 + 47 + # Test with Python 3.13 48 + - name: "Test with Python 3.13" 49 + command: | 50 + uv python install 3.13 51 + uv sync --python 3.13 --all-extras --dev 52 + uv run --python 3.13 pytest 53 + 54 + # Build wheel to verify packaging 55 + - name: "Build wheel" 56 + command: "uv build --no-sources --wheel -o dist"