Skip to content

Commit c63bbea

Browse files
authored
CI: downloads test assets before executing tests (#7874)
1 parent 213aa1d commit c63bbea

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/reusable_checks_rust.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,5 +105,8 @@ jobs:
105105
with:
106106
pixi-version: v0.25.0
107107

108+
- name: Download test assets
109+
run: pixi run python ./scripts/ci/download_test_assets.py
110+
108111
- name: pixi run cargo test --all-targets --all-features
109112
run: pixi run cargo test --all-targets --all-features

scripts/ci/rust_checks.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,10 @@ def docs_slow(timings: list[Timing]) -> None:
221221
def tests(timings: list[Timing]) -> None:
222222
# We first use `--no-run` to measure the time of compiling vs actually running
223223

224+
# Make sure we have the test assets first.
225+
print("Downloading test assets…")
226+
subprocess.run([sys.executable, "tests/assets/download_test_assets.py"])
227+
224228
# Just a normal `cargo test` should always work:
225229
timings.append(run_cargo("test", "--all-targets --no-run"))
226230
timings.append(run_cargo("test", "--all-targets"))

0 commit comments

Comments
 (0)