Skip to content

Commit ff98d34

Browse files
committed
fix: install harmont-py in Rust container for full test suite
Add python3-pip to shared apt-base and pip install harmont-py before cargo test so integration tests can import harmont.
1 parent a120cd2 commit ff98d34

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.harmont/ci.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"pkg-config",
1313
"libssl-dev",
1414
"python3",
15+
"python3-pip",
1516
"python3-venv",
1617
)
1718

@@ -47,7 +48,8 @@ def ci(
4748
warm = rust_project.warmup()
4849
return (
4950
warm.sh(
50-
". $HOME/.cargo/env && cd . && cargo test --workspace --lib --locked --no-fail-fast",
51+
"python3 -m pip install --break-system-packages dsls/harmont-py"
52+
" && . $HOME/.cargo/env && cd . && cargo test --workspace --locked --no-fail-fast",
5153
label=":rust: test",
5254
),
5355
warm.sh(

.harmont/ci.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const ALL_APT = [
1414
"pkg-config",
1515
"libssl-dev",
1616
"python3",
17+
"python3-pip",
1718
"python3-venv",
1819
] as const;
1920

@@ -29,7 +30,7 @@ const pipelines: PipelineDefinition[] = [
2930
triggers: [push({ branch: "main" }), pullRequest({ branches: ["main"] })],
3031
pipeline: pipeline(
3132
warm.sh(
32-
`. $HOME/.cargo/env && cd . && cargo test --workspace --lib --locked --no-fail-fast`,
33+
`python3 -m pip install --break-system-packages dsls/harmont-py && . $HOME/.cargo/env && cd . && cargo test --workspace --locked --no-fail-fast`,
3334
{ label: ":rust: test" },
3435
),
3536
warm.sh(

0 commit comments

Comments
 (0)