-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
38 lines (31 loc) · 877 Bytes
/
Taskfile.yml
File metadata and controls
38 lines (31 loc) · 877 Bytes
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
version: "3"
# Tasks for PyNGL to find what task there are run task --list-test_all
# most tasks will run from the Task root directory, but the lint is run from the current directory
tasks:
test-all:
cmds:
- set -euo pipefail
- uv run pytest || exit 1
- uv run pytest -m opengl || exit 1
- uv run pytest -m webgpu || exit 1
- uv run pytest -m qt || exit 1
lint:
dir: "{{.USER_WORKING_DIR}}" # lint only in the current directory and below
cmds:
- uv run ruff format
- uv run ruff check --fix
coverage:
cmds:
- uv run coverage run --source=src/ncca/ngl -m pytest -v
- uv run coverage report -m
- uv run coverage xml
- uv run coverage html
sync:
cmds:
- uv sync
uv-upgrade:
cmds:
- uv sync --upgrade
clean-all:
cmds: rm -rf __pycache__
rm -rf .venv