Skip to content

Commit df8dcde

Browse files
committed
Tests with GitHub Actions
1 parent fe20646 commit df8dcde

File tree

6 files changed

+9125
-1017
lines changed

6 files changed

+9125
-1017
lines changed

.github/workflows/pytest-linux.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# https://github.com/marketplace/actions/setup-pixi
2+
name: Pytest - Linux
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [ "main" ]
7+
paths: [ "src/**", ".github/workflows/pytest-linux.yml" ]
8+
jobs:
9+
pytest:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
environment: [ test-py310, test-py311, test-py312, test-py313, test-py314 ]
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
sparse-checkout: |
19+
pixi.lock
20+
pixi.toml
21+
pyproject.toml
22+
README.md
23+
src/giso
24+
tests
25+
sparse-checkout-cone-mode: false
26+
- uses: prefix-dev/setup-pixi@v0.9.1
27+
with:
28+
pixi-version: v0.56.0
29+
cache: true
30+
environments: default
31+
- run: pixi run ${{ matrix.environment }}

.github/workflows/pytest-macos.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# https://github.com/marketplace/actions/setup-pixi
2+
name: Pytest - macOS
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [ "main" ]
7+
paths: [ "src/**", ".github/workflows/pytest-macos.yml" ]
8+
jobs:
9+
pytest:
10+
runs-on: macos-latest
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
environment: [ test-py310, test-py311, test-py312, test-py313, test-py314 ]
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
sparse-checkout: |
19+
pixi.lock
20+
pixi.toml
21+
pyproject.toml
22+
README.md
23+
src/giso
24+
tests
25+
sparse-checkout-cone-mode: false
26+
- uses: prefix-dev/setup-pixi@v0.9.1
27+
with:
28+
pixi-version: v0.56.0
29+
cache: true
30+
environments: default
31+
- run: pixi run ${{ matrix.environment }}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# https://github.com/marketplace/actions/setup-pixi
2+
name: Pytest - Windows
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [ "main" ]
7+
paths: [ "src/**", ".github/workflows/pytest-windows.yml" ]
8+
jobs:
9+
pytest:
10+
runs-on: windows-latest
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
environment: [ test-py310, test-py311, test-py312, test-py313, test-py314 ]
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
sparse-checkout: |
19+
pixi.lock
20+
pixi.toml
21+
pyproject.toml
22+
README.md
23+
src/giso
24+
tests
25+
sparse-checkout-cone-mode: false
26+
- uses: prefix-dev/setup-pixi@v0.9.1
27+
with:
28+
pixi-version: v0.56.0
29+
cache: true
30+
environments: default
31+
- run: pixi run ${{ matrix.environment }}

docs/pytest_coverage.json

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"meta": {
33
"software": "slipcover",
44
"version": "1.0.17",
5-
"timestamp": "2025-10-06T12:54:33.199168",
5+
"timestamp": "2025-10-09T08:13:48.386212",
66
"branch_coverage": false,
77
"show_contexts": false
88
},
@@ -47,8 +47,6 @@
4747
49,
4848
50,
4949
52,
50-
53,
51-
54,
5250
61,
5351
62,
5452
64,
@@ -95,13 +93,15 @@
9593
],
9694
"missing_lines": [
9795
47,
96+
53,
97+
54,
9898
131,
9999
132
100100
],
101101
"summary": {
102-
"covered_lines": 72,
103-
"missing_lines": 3,
104-
"percent_covered": 96.0
102+
"covered_lines": 70,
103+
"missing_lines": 5,
104+
"percent_covered": 93.33333333333333
105105
}
106106
},
107107
"src\\giso\\_cli.py": {
@@ -116,10 +116,9 @@
116116
12,
117117
39,
118118
40,
119-
41,
120119
42,
121120
43,
122-
45,
121+
44,
123122
46,
124123
47,
125124
48,
@@ -129,46 +128,49 @@
129128
52,
130129
53,
131130
54,
132-
56,
131+
55,
133132
57,
134133
58,
135134
59,
136135
60,
137-
62,
138-
64,
136+
61,
137+
63,
139138
65,
140139
66,
141-
69,
142-
71,
140+
67,
141+
70,
143142
72,
144143
73,
145-
75,
146-
77,
147-
79,
144+
74,
145+
76,
146+
78,
148147
80,
149-
81,
150148
82,
151149
84,
150+
85,
152151
86,
153152
87,
154-
88,
155-
93
153+
89,
154+
91,
155+
92,
156+
93,
157+
98
156158
],
157159
"missing_lines": [
158-
90,
159-
94
160+
95,
161+
99
160162
],
161163
"summary": {
162-
"covered_lines": 47,
164+
"covered_lines": 49,
163165
"missing_lines": 2,
164-
"percent_covered": 95.91836734693878
166+
"percent_covered": 96.07843137254902
165167
}
166168
}
167169
},
168170
"summary": {
169171
"covered_lines": 120,
170-
"missing_lines": 5,
171-
"percent_covered": 96.0,
172-
"percent_covered_display": "96%"
172+
"missing_lines": 7,
173+
"percent_covered": 94.48818897637796,
174+
"percent_covered_display": "94%"
173175
}
174176
}

0 commit comments

Comments
 (0)