-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjustfile
More file actions
38 lines (29 loc) · 1.12 KB
/
justfile
File metadata and controls
38 lines (29 loc) · 1.12 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
# Install all dependencies
install:
uv sync --all-groups
# Run tests
test:
uv run --group test pytest --cov=src --cov=tests --cov-report=xml
# Run tests in CI with the mock Stata executable installed.
test-ci:
uv run --group test --group test-mock-stata pytest --cov=src --cov=tests --cov-report=xml
# Run type checking
typing:
uv run --group typing --group test --isolated ty check
# Run linting and formatting
lint:
uvx prek run -a
# Run all checks (format, lint, typing, test)
check: lint typing test
# Run tests with lowest dependency resolution
test-lowest:
uv run --group test --resolution lowest-direct pytest
# Run tests with lowest dependency resolution in CI with the mock Stata executable installed.
test-lowest-ci:
uv run --group test --group test-mock-stata --resolution lowest-direct pytest
# Run tests with highest dependency resolution
test-highest:
uv run --group test --resolution highest pytest
# Run tests with highest dependency resolution in CI with the mock Stata executable installed.
test-highest-ci:
uv run --group test --group test-mock-stata --resolution highest pytest