-
Notifications
You must be signed in to change notification settings - Fork 4
/
pixi.toml
128 lines (103 loc) · 6.36 KB
/
pixi.toml
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
[project]
name = "ecoscope-workflows-dev"
channels = ["conda-forge"]
platforms = ["linux-64", "linux-aarch64", "osx-arm64"]
[dependencies]
curl = "*"
rattler-build = "*"
yq = "*"
[tasks]
# build ----------------------------------------------------------------------------------------
build-vendor = { cmd = "./publish/build.sh vendor" }
build-release = { cmd = "./publish/build.sh release" }
# release ----------------------------------------------------------------------------------
verify-build-tag = { cmd = "./publish/verify.sh" }
push-all = { cmd = "./publish/push.sh" }
# examples ---------------------------------------------------------------------------------
recompile-events = { cmd = "./dev/recompile.sh events --lock", depends-on = ["build-release"] }
recompile-patrols = { cmd = "./dev/recompile.sh patrols --lock", depends-on = ["build-release"] }
recompile-subject-tracking = { cmd = "./dev/recompile.sh subject-tracking --lock", depends-on = ["build-release"] }
recompile-all = { cmd ="echo 'recompile-all' complete", depends-on = [
"recompile-events",
"recompile-patrols",
"recompile-subject-tracking",
]}
recompile-events-carryover-lockfile = { cmd = "./dev/recompile.sh events --no-lock --carryover-lockfile" }
recompile-patrols-carryover-lockfile = { cmd = "./dev/recompile.sh patrols --no-lock --carryover-lockfile" }
recompile-subject-tracking-carryover-lockfile = { cmd = "./dev/recompile.sh subject-tracking --no-lock --carryover-lockfile" }
recompile-all-carryover-lockfile = { cmd ="echo 'recompile-all-carryover-lockfile' complete", depends-on = [
"recompile-events-carryover-lockfile",
"recompile-patrols-carryover-lockfile",
"recompile-subject-tracking-carryover-lockfile",
]}
pytest-events-params = { cmd = "./dev/pytest-examples-params.sh events" }
pytest-patrols-params = { cmd = "./dev/pytest-examples-params.sh patrols" }
pytest-subject-tracking-params = { cmd = "./dev/pytest-examples-params.sh subject-tracking" }
pytest-events-app = { cmd = "./dev/pytest-examples-run.sh events 'app'" }
pytest-patrols-app = { cmd = "./dev/pytest-examples-run.sh patrols 'app'" }
pytest-subject-tracking-app = { cmd = "./dev/pytest-examples-run.sh subject-tracking 'app'" }
pytest-events-cli = { cmd = "./dev/pytest-examples-run.sh events 'cli'" }
pytest-patrols-cli = { cmd = "./dev/pytest-examples-run.sh patrols 'cli'" }
pytest-subject-tracking-cli = { cmd = "./dev/pytest-examples-run.sh subject-tracking 'cli'" }
docker-build-events = { cmd = "./dev/docker-build.sh events" }
docker-build-patrols = { cmd = "./dev/docker-build.sh patrols" }
docker-build-subject-tracking = { cmd = "./dev/docker-build.sh subject-tracking" }
docker-run-events = { cmd = "./dev/docker-run.sh events" }
docker-run-patrols = { cmd = "./dev/docker-run.sh patrols" }
docker-run-subject-tracking = { cmd = "./dev/docker-run.sh subject-tracking" }
curl-invoke-events = { cmd = "./dev/curl-invoke-docker.sh events" }
curl-invoke-patrols = { cmd = "./dev/curl-invoke-docker.sh patrols" }
curl-invoke-subject-tracking = { cmd = "./dev/curl-invoke-docker.sh subject-tracking" }
# lock ---------------------------------------------------------------------------------------------------
lock-core = { cmd = "pixi install -a --manifest-path pyproject.toml", cwd = "src/ecoscope-workflows-core" }
lock-ext-ecoscope = { cmd = "pixi install -a --manifest-path pyproject.toml", cwd = "src/ecoscope-workflows-ext-ecoscope" }
# core ----------------------------------------------------------------------
mypy-core-310 = { cmd = "./dev/mypy.sh core 310", depends-on = ["lock-core"]}
mypy-core-311 = { cmd = "./dev/mypy.sh core 311", depends-on = ["lock-core"]}
mypy-core-312 = { cmd = "./dev/mypy.sh core 312", depends-on = ["lock-core"]}
mypy-core-all = { cmd = "echo 'pytest-core-all' complete", depends-on = [
"mypy-core-310",
"mypy-core-311",
"mypy-core-312",
]}
doctest-core-310 = { cmd = "./dev/doctest.sh core 310", depends-on = ["lock-core"]}
doctest-core-311 = { cmd = "./dev/doctest.sh core 311", depends-on = ["lock-core"]}
doctest-core-312 = { cmd = "./dev/doctest.sh core 312", depends-on = ["lock-core"]}
doctest-core-all = { cmd = "echo 'doctest-core-all' complete", depends-on = [
"doctest-core-310",
"doctest-core-311",
"doctest-core-312",
]}
pytest-core-310 = { cmd = "./dev/pytest-src.sh core 310", depends-on = ["lock-core"]}
pytest-core-311 = { cmd = "./dev/pytest-src.sh core 311", depends-on = ["lock-core"]}
pytest-core-312 = { cmd = "./dev/pytest-src.sh core 312", depends-on = ["lock-core"]}
pytest-core-all = { cmd = "echo 'pytest-core-all' complete", depends-on = [
"pytest-core-310",
"pytest-core-311",
"pytest-core-312",
]}
# ext-ecoscope -------------------------------------------------------------------------------------
mypy-ext-ecoscope-310 = { cmd = "./dev/mypy.sh ext-ecoscope 310", depends-on = ["lock-ext-ecoscope"]}
mypy-ext-ecoscope-311 = { cmd = "./dev/mypy.sh ext-ecoscope 311", depends-on = ["lock-ext-ecoscope"]}
mypy-ext-ecoscope-312 = { cmd = "./dev/mypy.sh ext-ecoscope 312", depends-on = ["lock-ext-ecoscope"]}
mypy-ext-ecoscope-all = { cmd = "echo 'mypy-ext-ecoscope-all' complete", depends-on = [
"mypy-ext-ecoscope-310",
"mypy-ext-ecoscope-311",
"mypy-ext-ecoscope-312",
]}
pytest-ext-ecoscope-310-not-io = { cmd = "./dev/pytest-src.sh ext-ecoscope 310 '-m \"not io\"'", depends-on = ["lock-ext-ecoscope"]}
pytest-ext-ecoscope-311-not-io = { cmd = "./dev/pytest-src.sh ext-ecoscope 311 '-m \"not io\"'", depends-on = ["lock-ext-ecoscope"]}
pytest-ext-ecoscope-312-not-io = { cmd = "./dev/pytest-src.sh ext-ecoscope 312 '-m \"not io\"'", depends-on = ["lock-ext-ecoscope"]}
pytest-ext-ecoscope-all-not-io = { cmd = "echo 'pytest-ext-ecoscope-all-not-io' complete", depends-on = [
"pytest-ext-ecoscope-310-not-io",
"pytest-ext-ecoscope-311-not-io",
"pytest-ext-ecoscope-312-not-io",
]}
pytest-ext-ecoscope-310-io = { cmd = "./dev/pytest-src.sh ext-ecoscope 310 '-m \"io\"'", depends-on = ["lock-ext-ecoscope"]}
pytest-ext-ecoscope-311-io = { cmd = "./dev/pytest-src.sh ext-ecoscope 311 '-m \"io\"'", depends-on = ["lock-ext-ecoscope"]}
pytest-ext-ecoscope-312-io = { cmd = "./dev/pytest-src.sh ext-ecoscope 312 '-m \"io\"'", depends-on = ["lock-ext-ecoscope"]}
pytest-ext-ecoscope-all-io = { cmd = "echo 'pytest-ext-ecoscope-all-io' complete", depends-on = [
"pytest-ext-ecoscope-310-io",
"pytest-ext-ecoscope-311-io",
"pytest-ext-ecoscope-312-io",
]}