tangled
alpha
login
or
join now
urschrei.eurosky.social
/
pyzotero
0
fork
atom
Pyzotero: a Python client for the Zotero API
pyzotero.readthedocs.io
zotero
0
fork
atom
overview
issues
pulls
pipelines
Add spindle CI workflow for testing
urschrei.eurosky.social
6 months ago
049572ae
7c93e476
+56
1 changed file
expand all
collapse all
unified
split
.tangled
workflows
ci.yml
+56
.tangled/workflows/ci.yml
···
1
1
+
# Spindle CI workflow for pyzotero testing
2
2
+
# Runs on push and pull request events
3
3
+
4
4
+
when:
5
5
+
- event: ["push", "pull_request"]
6
6
+
7
7
+
engine: nixery
8
8
+
9
9
+
dependencies:
10
10
+
nixpkgs:
11
11
+
- uv
12
12
+
- ruff
13
13
+
14
14
+
steps:
15
15
+
# Linting
16
16
+
- name: "Run Ruff linter"
17
17
+
command: "ruff check --verbose"
18
18
+
19
19
+
# Test with Python 3.9
20
20
+
- name: "Test with Python 3.9"
21
21
+
command: |
22
22
+
uv python install 3.9
23
23
+
uv sync --python 3.9 --all-extras --dev
24
24
+
uv run --python 3.9 pytest
25
25
+
26
26
+
# Test with Python 3.10
27
27
+
- name: "Test with Python 3.10"
28
28
+
command: |
29
29
+
uv python install 3.10
30
30
+
uv sync --python 3.10 --all-extras --dev
31
31
+
uv run --python 3.10 pytest
32
32
+
33
33
+
# Test with Python 3.11
34
34
+
- name: "Test with Python 3.11"
35
35
+
command: |
36
36
+
uv python install 3.11
37
37
+
uv sync --python 3.11 --all-extras --dev
38
38
+
uv run --python 3.11 pytest
39
39
+
40
40
+
# Test with Python 3.12
41
41
+
- name: "Test with Python 3.12"
42
42
+
command: |
43
43
+
uv python install 3.12
44
44
+
uv sync --python 3.12 --all-extras --dev
45
45
+
uv run --python 3.12 pytest
46
46
+
47
47
+
# Test with Python 3.13
48
48
+
- name: "Test with Python 3.13"
49
49
+
command: |
50
50
+
uv python install 3.13
51
51
+
uv sync --python 3.13 --all-extras --dev
52
52
+
uv run --python 3.13 pytest
53
53
+
54
54
+
# Build wheel to verify packaging
55
55
+
- name: "Build wheel"
56
56
+
command: "uv build --no-sources --wheel -o dist"