-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathjustfile
More file actions
49 lines (38 loc) · 1.43 KB
/
Copy pathjustfile
File metadata and controls
49 lines (38 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# https://github.com/casey/just
# Default recipe
default:
@just --list
# Run full coverage tests across Python versions and dependency resolutions
test-cov-full:
#!/usr/bin/env bash
set -euo pipefail
echo "🧪 Running comprehensive test coverage across Python versions and dependency resolutions..."
# Clean up any existing coverage data
rm -f .coverage .coverage.*
rm -rf htmlcov/
echo ""
echo "📊 Step 1: Running tests with Python 3.10 + lowest dependencies..."
uv run -p 3.10 --resolution lowest-direct --exact -U --no-dev --group test-full \
coverage run --parallel-mode --source=src --omit="*/tests/*" -m pytest -v
sleep 1
echo ""
echo "📊 Step 2: Running tests with Python 3.13 + highest dependencies..."
uv run -p 3.13 --resolution highest --exact -U --no-dev --group test-full \
coverage run --parallel-mode --source=src --omit="*/tests/*" -m pytest -v
uv run coverage combine
echo ""
echo "=================================="
echo "📈 COMBINED COVERAGE REPORT"
echo "=================================="
uv run coverage report --show-missing --skip-covered
# Clean coverage artifacts
clean-cov:
rm -f .coverage .coverage.*
rm -rf htmlcov/
# Clean build artifacts
clean: clean-cov
rm -rf dist/
rm -rf build/
rm -rf *.egg-info/
find . -type d -name __pycache__ -exec rm -rf {} +
find . -type f -name "*.pyc" -delete