From e3cb2bbd1a261094a14feded40c525e22370de2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20H=C3=BCgel?= Date: Fri, 29 Aug 2025 15:41:52 +0100 Subject: [PATCH] Add spindle CI workflow for testing Change-Id: owozutononoknrrtqtwlxumxlskzqozm --- .tangled/workflows/ci.yml | 56 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 .tangled/workflows/ci.yml diff --git a/.tangled/workflows/ci.yml b/.tangled/workflows/ci.yml new file mode 100644 index 0000000..0d9c47f --- /dev/null +++ b/.tangled/workflows/ci.yml @@ -0,0 +1,56 @@ +# Spindle CI workflow for pyzotero testing +# Runs on push and pull request events + +when: + - event: ["push", "pull_request"] + +engine: nixery + +dependencies: + nixpkgs: + - uv + - ruff + +steps: + # Linting + - name: "Run Ruff linter" + command: "ruff check --verbose" + + # Test with Python 3.9 + - name: "Test with Python 3.9" + command: | + uv python install 3.9 + uv sync --python 3.9 --all-extras --dev + uv run --python 3.9 pytest + + # Test with Python 3.10 + - name: "Test with Python 3.10" + command: | + uv python install 3.10 + uv sync --python 3.10 --all-extras --dev + uv run --python 3.10 pytest + + # Test with Python 3.11 + - name: "Test with Python 3.11" + command: | + uv python install 3.11 + uv sync --python 3.11 --all-extras --dev + uv run --python 3.11 pytest + + # Test with Python 3.12 + - name: "Test with Python 3.12" + command: | + uv python install 3.12 + uv sync --python 3.12 --all-extras --dev + uv run --python 3.12 pytest + + # Test with Python 3.13 + - name: "Test with Python 3.13" + command: | + uv python install 3.13 + uv sync --python 3.13 --all-extras --dev + uv run --python 3.13 pytest + + # Build wheel to verify packaging + - name: "Build wheel" + command: "uv build --no-sources --wheel -o dist" -- 2.43.0