-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy pathTaskfile.yml
More file actions
71 lines (62 loc) · 1.9 KB
/
Taskfile.yml
File metadata and controls
71 lines (62 loc) · 1.9 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# yaml-language-server: $schema=https://taskfile.dev/schema.json
# https://taskfile.dev
version: "3"
tasks:
docs-build:
desc: Clean and build the documentation
dir: docs
cmds:
- uv sync
- make clean
- make html
docs-server:
desc: Run the documentation live-reload server
dir: docs
cmds:
- uv sync
- make clean
- uv run --directory . make livehtml
smoke-test:
desc: Create the demo project and run the simulation flow
cmds:
- rm -rf demo-smoke-test
- uv run FABulous c demo-smoke-test
- uv run FABulous -p demo-smoke-test run "run_FABulous_fabric"
- task --dir ./demo-smoke-test/Test fab-sim
smoke-test-vhdl:
desc: Create the demo project and run the simulation flow
cmds:
- rm -rf demo-smoke-test
- uv run FABulous c demo-smoke-test -w vhdl
- uv run FABulous -p demo-smoke-test run "run_FABulous_fabric"
- task --dir ./demo-smoke-test/Test fab-sim
ci:
desc: Run code checks, tests, and the docs build
cmds:
- uv run pre-commit run --all-files
- task: docs-build
clean-all:
desc: Remove common build artifacts and caches
cmds:
- find . -type d -name '__pycache__' -exec rm -rf {} + 2>/dev/null || true
- find . -name '*.pyc' -delete
- rm -rf build/ dist/ *.egg-info/ .pytest_cache/ .ruff_cache/
sync-demo:
desc: Synchronize demo tile GDS configuration
cmds:
- uv run scripts/sync_demo_tile_gds_config.py
# Usage examples:
# task test -- -h
# task test -- -p 8
# task test -- -p auto -k foo -vv
# task test -- --runslow --maxfail=1
test:
desc: Run the unified pytest wrapper with forwarded arguments
cmds:
- uv run scripts/run_tests.py {{.CLI_ARGS}}
upgrade:
desc: Refresh lockfiles, update the Nix flake, and run tests
cmds:
- uv lock --upgrade
- nix flake update
- task: test